I'm trying to set up a flow that will copy an event from Outlook Calendar to Google Calendar if the subject contains a keyword--in this case, "Vacation." If the event has a particular start and end time, it works perfectly. However, if it's an all-day event, it creates an event along these lines...
Here's the event in Outlook Calendar:
And here's what the flow created in Google Calendar:
Weirdly, the event in Google starts at 7pm the day before and ends at 7pm the day of.
I'm using the default settings for start and end time:
I have a condition for "Is an all day event?" but currently the start and end time settings are the same for all-day and not-all-day events because I'm not sure what to do differently.
I've got it sort of figured out. The problem is that Flow assumes a UTC time zone, whereas I'm in EST (-05:00). I tried setting my time zone in the flow, but when I couldn't get that to work right away, I did it manually using addHours.
Here's the general format I used: addHours(StartTime, #HoursToAdd)
And here's what it looks like:
Now I can successfully create an event starting at 12:00AM and lasting until 12:00AM the subsequent day (as long as I'm in EST, otherwise the +05:00 will no longer be accurate):
This is almost exactly what I want, and if it's the best I can manage, I'll be happy with it. However, like Outlook Calendar, Google Calendar has a checkbox for All Day. Here's what a real all-day event looks like:
No start and end times, just the date. If I could use this, it would solve the time zone issue and generally look neater.
So is there any way to bypass the start and end time settings and just check the All Day checkbox if it's checked in Outlook?
Could you please share a screenshot of your flow's configuration?
The issue is confirmed on my side, I think this issue is related to Time Zone. When working Date and times, all times in flow would be converted into Universal Time (UTC or GMT) automatically.
I have made a test on my side, when I create a all-day event in Outlook calendar, the Start and End time of the event would be converted into UTC format. Then I use "Date Time- Convert time zone" action to convert the UTC time to the time in my time zone, the Start and End time converted into the time in my time zone, but not the Start and End time of the All-Day event (middle night time), so I think the "Date Time- Convert time zone" action would not useful in your scenario.
If you want the event created in Google calendar is a All-Day event, please take a try with the following workaround as an alternative way:
End time field set to following formula:
The flow works successfully as below:
We are excited to announce the launch of Power Virtual Agents Community. Check it out now!
We've updated and improved the layout and uploading format of the Power Automate Cookbook!
Fill out a quick form to claim your user group badge now!