Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Error when adding a Calendar event to Outlook

I have an app that has the function to add a calendar event to Outlook. The problem is, while adding the event works for me, it always gives an error and is not working for all users. Here is the code for the button that adds the event:


Office365Outlook.CalendarPostItem(ComboBox3.Selected.Name;DatePicker1.SelectedDate + Time(Value(Dropdown1.Selected.Value+3); Value(Dropdown1_1.Selected.Value); 0;0);DatePicker1.SelectedDate + Time(Value(Dropdown1.Selected.Value+2); Value(Dropdown1_1.Selected.Value); 0;0); DataCardValue9.Text; {Body: {Content: DataCardValue7.Text & "<br><br>" & Label24.Text & "<br>" & Label24_1.Text; ContentType: "HTML"}; StartTimeZone: "Europe/Helsinki"; EndTimeZone: "Europe/Helsinki"});


I added the error message as an attachment.


The problem seems to be the Timezone, since the code works perfectly without it. But if I don't put the Timezone in, the time of the event is wrong. I can't seem to find a list of Timezone formats that Powerapps supports. How do I fix this error? I live in Finland.

Community Support
Community Support

Hi @ilied ,


You mentioned that when you remove the timezone the event on the calendar is added with the wrong time. This means that the even time is set always 2 hours behind?  Once Helsinki is UTC+2 at the moment.


If you use the function Now on powerapps do you get your local time as I do?


Yes, the time was two hours off if I used Now(). I fixed this, though. Did not change anything in the code, but I enabled some experimental features in the powerapps options. The error message disappeared after that and everything works as it should. 🙂

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.


New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,217)