cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rbin
Advocate I
Advocate I

Create a Group Event: can't specify time zone

One of the tasks of my Flow is to create an all-day event in a group calendar.

 

All events created via this connector are created with timezone = UTC. This becomes an issue when viewing the event in a non-UTC timezone, as an all-day event becomes a 24-hour event.

 

For example, 2017-01-01 to 2017-01-02 is an all-day event for 1 Jan 2017. When viewed in a UTC+11 zone, this becomes the 24-hour event 2017-01-01 11:00:00 to 2017-01-02 11:00:00, spanning two days.

 

Other connectors (e.g. Create Event V2) have the ability to specify a timezone, why is it left out here?

It's worth noting that the following constraints exist:

  • All-day events must start and end at midnight

  • Events are stored as UTC
  • Attempting to specify an offset in the Start/End Date fields (e.g. 2017-01-01T00:00:00-7:00) results in the error "All-day events must start and end at midnight"

See also: CreateCalendarEvent_Response here: https://docs.microsoft.com/en-us/connectors/office365groups/

EDIT: This ability exists in PowerApps, but appears unavailble in Flow: https://powerusers.microsoft.com/t5/General-Discussion/Office-365-Group-Connector-Available/td-p/691...

2 REPLIES 2
v-xida-msft
Community Support
Community Support

Hi @rbin,

 

Thanks for your feedback, could you please share a screesshot of your flow's configuration?

Do you set Is All Day field to Yes within "Create a group event" action?

 

When working date and times, all times in flow would be converted into Universal Time (UTC or GMT) automatically. If you set the Is All Day field set to yes wihtin "Create a group event" action, you should type a midnight time wihtin Start Time field and End Time field.

 

In addition, if you want to create an all-day event in a group calendar, you could consider take a try with the following workaround:

  • Add a proper trigger, here I use Flow Button trigger.
  • Add a "Create a group event" action, Start Time field set to following formula:
2018-01-24

End Time field set to following formula:

2018-01-25

Is All Day field set to Yes.

 

Image reference:23.JPG

The flow works successfully as below:24.JPG

 

25.JPG

 

I have made a test on my side and find that the default time zone of Start Time and End Time within "Cretae a group event" action is UTC format, we could not modify it in Microsoft Flow currently. If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Best regards,

Kris

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

Hi Kris,

 

Thanks for the reply. 

 

Perhaps explaining my use-case will help.

I'm trying to create a flow for an Leave Request. Once this leave is approved by the relevant parties, the flow is to popluate an administration calendar with an all-day event. This is a group calendar.

 

I have no issue creating an all-day event using date-only inputs (as your flow does), but this is created midnight-to-midnight in UTC. Of course, when viewed by anyone outside UTC, the event is no longer 'all day'. What is required is a midnight-to-midnight all-day event in UTC+11.

 

Below are screenshots of the input/output of the Action. The Output timezone is UTC, but there is no option to specifiy a timezone in the Input.

 

 

 

 

Other "Create Event" actions allow the timezone to be specified, allowing the all-day event to be created in the relevant timezone. However, Create Event V1 and V2 both cannot interact with Group Calendars.

 

Can you suggest any other way to create an all-day event in a Group Calendar in the timezone UTC+11?

Helpful resources

Announcements
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!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (3,065)