cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted

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
Community Support Team
Community Support Team

Re: Writing an Event to Outlook Calendar

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
Community Support Team
Community Support Team

Re: Writing an Event to Outlook Calendar

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

Re: Writing an Event to Outlook Calendar

@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

Re: Writing an Event to Outlook Calendar

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" }
ci-pinto
Level: Powered On

Re: Writing an Event to Outlook Calendar

Hello...

 

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

Does someone have an answer for this?

kscharber
Level: Powered On

Re: Writing an Event to Outlook Calendar

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

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 301 members 6,267 guests
Please welcome our newest community members: