cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
whabicht
Helper I
Helper I

Office365.CalendarPostItem: Correct slot on calendar, but listed as UTC in calendar

I'm utilizing the Meeting Capture framework. I have everything working correctly except that the event is posted to Office365 in UTC. 
To lay it out:

1) I select a meeting slot from 8:00AM - 8:30AM and it posts on the calendar in the correct slot

 

CalendarHighLevelView.png

 

 

2. But, when I open up the event in Office365, it shows the time in UTC

 

CalendarDetails.png

 

This will likely be confusing for the end users. Is there a way to post the event in PST or local time zone?

Here's the code from the submit button:

 

 

Office365.CalendarPostItem(MyCalendarID, FollowUpEnd, FollowUpStart,TextMeetingSubject1.Text,{Body:{Content:TextMeetingMessage1.Text,ContentType:"Text"},Attendees:ForAll(FollowUpMeetingAttendees,{Type:"required",Status:{Response:"none",Time:"0001-01-01T00:00:00Z"},EmailAddress:{Name:DisplayName,Address:UserPrincipalName}})})

 

 

Additional information:

1) I have the DatePicker's DateTimeZone set to "local"

2) The app OnStart is

 

 

Concurrent(Set(MyCalendarID,LookUp(Office365.CalendarGetTables().value,DisplayName=LookUp(CalendarLocalizedLabel,Value=DisplayName).Value).Name);ClearCollect(AllFutureEvents,Office365.GetEventsCalendarView(MyCalendarID,Text(Today(),UTC),Text(DateAdd(Today(),2,Days),UTC)).Values)

 

 

I'm sooooo close. Just this final tweak and I'll be able to run a Beta w/ a few users! 😀

Thanks in advance for any help!!

1 ACCEPTED SOLUTION

Accepted Solutions
FCGALLEG
Microsoft
Microsoft

Hi whabicht

 

We have this post about Working with Dates and Times inside of your flows

https://flow.microsoft.com/en-us/blog/working-with-dates-and-times/

 

 

Please check if it can help you.

 

Javier

View solution in original post

1 REPLY 1
FCGALLEG
Microsoft
Microsoft

Hi whabicht

 

We have this post about Working with Dates and Times inside of your flows

https://flow.microsoft.com/en-us/blog/working-with-dates-and-times/

 

 

Please check if it can help you.

 

Javier

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (60,012)