
Announcements
Hello - I am building a flow which creates an ics file that is attached to an email so the end user can add an event to their calendar. However, the ics file is appearing with an incorrect start /stop date time. It keeps reverting to today's date and time frame - not matching the date and time frame of the actual event. Any help on why this is happening and how I might fix it would be greatly appreciated!
Note: I originally attempted this using instructions at: Power Automate: How to create an ics calendar event - Manuel T. Gomes (manueltgomes.com)
Using the Run History, I can see that my date time stamp and start stop times in the ICS variable that is used to create my ics file is correct:
Here is the email from the flow with attached ics file:
But when I open the ics file - it is the wrong date and times
Here is the step in the flow that creates the ics file: (I originally tried the utc convert function but that returned the wrong hours so I then skipped the compose actions (converttoUTCStart and End) and set the start time and end time variables based on the concat function above as in the snippet below to create the time stamp. I wonder if this is the issue even though the date/time format appears correct in the run history?
Here is my send email action with the attached ics file:
Okay, I gave up using the convertoUTC function and instead did a series of compose actions to reformat my date time to fit the pattern described in this video (Create and Send ICS Calendar Invites with Flow - Power Platform Community (microsoft.com)) and now the ics calendar is scheduling the correct date.