cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BrendonBrooksP1
Post Patron
Post Patron

Writing an Event to Outlook Calendar

For some reason, when I post an event to a calendar using the following code (see below), it posts an the day prior to the selected date. For example, if I select 8/16/2017, PA will post an event to 8/15/2017 instead. Is this another one of those wierd date issues that PA still has?

 

Office365.V2CalendarPostItem(ddSelect.Selected.Value, "test" ,date1.SelectedDate, date2.SelectedDate, { Body: DataCardValue47, IsHtml: true, IsAllDay: false});Navigate(success,ScreenTransition.Fade)

Also, are we able to post an event to an Office 365 group calendar?

 

v/r

Brendon

1 ACCEPTED SOLUTION

Accepted Solutions
v-yamao-msft
Community Support
Community Support

Hi BrendonBrooksP1,

 

Please make sure the time zone on your local PC is the same with the time zone of Office 365.


I have tested to post event on Office 365 Outlook calendar via PowerApps. The date is actually what I filled on app.


I tried with both Office365. V2CalendarPostItem and Office365.CalendarPostItem, both are working fine.


The function I am using is:

Office365.V2CalendarPostItem(Dropdown1.Selected.Name,TextInput1.Text,DatePicker1.SelectedDate,DatePicker2.SelectedDate)


Then when I click the button, an event will be created on the selected calendar without issues.
3.PNG

4.PNG

Please check the time zone and try again with it.


If you are still having the issue, please feel free post back.

 

About post an event to Office 365 Group calendar, it seems that currently it is not possible. Please consider to vote the idea at here, I will help collect and report it from my side.

https://powerusers.microsoft.com/t5/PowerApps-Ideas/Office-365-Group-Calendar/idi-p/36695

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-yamao-msft
Community Support
Community Support

Hi BrendonBrooksP1,

 

Please make sure the time zone on your local PC is the same with the time zone of Office 365.


I have tested to post event on Office 365 Outlook calendar via PowerApps. The date is actually what I filled on app.


I tried with both Office365. V2CalendarPostItem and Office365.CalendarPostItem, both are working fine.


The function I am using is:

Office365.V2CalendarPostItem(Dropdown1.Selected.Name,TextInput1.Text,DatePicker1.SelectedDate,DatePicker2.SelectedDate)


Then when I click the button, an event will be created on the selected calendar without issues.
3.PNG

4.PNG

Please check the time zone and try again with it.


If you are still having the issue, please feel free post back.

 

About post an event to Office 365 Group calendar, it seems that currently it is not possible. Please consider to vote the idea at here, I will help collect and report it from my side.

https://powerusers.microsoft.com/t5/PowerApps-Ideas/Office-365-Group-Calendar/idi-p/36695

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

@v-yamao-msftUnderstood, I'll look into that. In order for people in my organization to see these events, I'm going to assume that I have to create a calendar, then share that calendar with everyone for the time being until the Office 365 connector has been updated to support Office Groups. Thanks for your help. 

 

brendon

Update on this one....

 

I can post to my calendar just fine, however when I select any other calendar in my drop down list, i receive this error: Is there something that I'm missing here?

 

The service returned an error: Office365!V2CalendarPostItem: { "status": 400, "message": "Id is malformed.\r\nclientRequestId: 6ea7e395-b6b3- b692-8283-c3979d36e7ca", "source": "office365connectionproviderwestus.tip0-westus.p.azurewebsites.net" }

Hello...

 

I have the same issue, but I can even post an event to my default calendar.

Does someone have an answer for this?

In my experience the date shifting can also be connected to the IsAllDay field.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,148)