I'm trying to add an event to the current user's calendar and have seen a lot of posts suggesting something like this:
Create a dropdown with the items
Office365Outlook.CalendarGetTablesV2().value
Then a button with the onselect:
Office365Outlook.V3CalendarPostItem(Dropdown1.SelectedText.name, CourseGallery_2.Selected.Title, CourseGallery_2.Selected.'Start Time',DateTimeValue(CourseGallery_2.Selected.'End Time'))
However, I get two issues.
Firstly the dropdown comes back as a random string of characters:
However, this does seem to correspond to an actual calendar as it shows the calendar in the info of the OnSelect for the button:
this code itself does not work as it says the first item after the bracket in V3CalendarPostItem should be a table whereas the dropdown returns only text.
Am I doing this wrong somehow?
Everywhere I've looked seems to show this method working.
Solved! Go to Solution.
Hi Lewkir,
From the screenshot you post, we can see that there is a "&" between Navigate function and Office365Outlook.V3CalendarPostItem function. This leads to the error. You have to use a semicolon to combine two different functions.
Navigate(...); Office365Outlook.V3CalendarPostItem(...)
I also made a test on Office365Outlook.V3CalendarPostItem function based on your description, it can work great.
Please have a try to check if your issue is fixed.
Sik
Hi Lewkir,
From the screenshot you post, we can see that there is a "&" between Navigate function and Office365Outlook.V3CalendarPostItem function. This leads to the error. You have to use a semicolon to combine two different functions.
Navigate(...); Office365Outlook.V3CalendarPostItem(...)
I also made a test on Office365Outlook.V3CalendarPostItem function based on your description, it can work great.
Please have a try to check if your issue is fixed.
Sik
Ah great, thanks, that's one down.
Any idea why the name of the calendar isn't pulling through properly?
Hi @Lewkir
Are you asking why the dropdown doesn't show the calendar name?
Just go to change Value property of Dropdown to 'name', then the dropdown will show the calendar names.
Sik
Ah no idea how I missed that.
Cheers
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
259 | |
122 | |
85 | |
81 | |
70 |