cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Lewkir
Level: Powered On

Issues with Connecting to Outlook Calendar

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:

 

image.png

However, this does seem to correspond to an actual calendar as it shows the calendar in the info of the OnSelect for the button:

 

image.png

 

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Microsoft v-siky-msft
Microsoft

Re: Issues with Connecting to Outlook Calendar

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(...)

 

Snipaste_2020-02-27_15-56-17.png

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

 

View solution in original post

4 REPLIES 4
Microsoft v-siky-msft
Microsoft

Re: Issues with Connecting to Outlook Calendar

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(...)

 

Snipaste_2020-02-27_15-56-17.png

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

 

View solution in original post

Lewkir
Level: Powered On

Re: Issues with Connecting to Outlook Calendar

Ah great, thanks, that's one down.

 

Any idea why the name of the calendar isn't pulling through properly?

 

 

Microsoft v-siky-msft
Microsoft

Re: Issues with Connecting to Outlook Calendar

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.

Snipaste_2020-02-27_17-37-26.pngSik

Lewkir
Level: Powered On

Re: Issues with Connecting to Outlook Calendar

Ah no idea how I missed that.

 

Cheers

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,750)