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

Issues with DateTime Format Iso8601

Hello PowerUser's, 

 

I'm a newbie on PowerAutomate, and I have some issue in the building of a flow to send a meeting invite to attendee when an event is booked in a Sharepoint Calendar.

 

The flow is pretty simple : When an item is create in Sharepoint Calendar (Cal_First), Create an Event (V4) 

 

The problem is on the Create an Event Start Time. I tried several formula and have different error message.

 

Here is the Create an Event block : 

Spoon92_0-1628259355180.png

 

My Start and End Time in my Sharepoint Gallery is based on a DateTime Column 

 

Spoon92_1-1628259539431.png

 

My only problem is with the formula to convert my DateTime to ISO8601 format. I don't even know what formula is the most appropriate : ConverttoUtc, ConvertFromUtc, ConverttoTimeZone.

1 ACCEPTED SOLUTION

Accepted Solutions
ekarim2020
Community Champion
Community Champion

Sorry, I was thinking that the dates were coming from a custom SharePoint list.

Please check your formatDateTime expression.

The formatDateTime for the Start time would look something like this:

 

formatDateTime(outputs('Get_item')?['body/EventDate'],'yyyy-MM-ddTHH:mmZ')

 

 The formatDateTime for End time would look something like this:

 

formatDateTime(outputs('Get_item')?['body/EndDate'],'yyyy-MM-ddTHH:mmZ')

 

SharePoint Events Calendar:

ekarim2020_2-1628501132460.png

ekarim2020_0-1628500730710.png

ekarim2020_1-1628500879002.png

Outlook Calendar:

ekarim2020_3-1628501168317.png

Ellis

View solution in original post

4 REPLIES 4
ekarim2020
Community Champion
Community Champion

I believe that date format SharePoint uses to store dates is in UTC format.

So your start time and end times could be taken from your SharePoint list item without changing them.

Ellis

If i don't change them, I have an error message which tell me that the "type/format « String/date-time » is not convertible in type/format « String/date-no-tz ». »."

🤔

ekarim2020
Community Champion
Community Champion

Sorry, I was thinking that the dates were coming from a custom SharePoint list.

Please check your formatDateTime expression.

The formatDateTime for the Start time would look something like this:

 

formatDateTime(outputs('Get_item')?['body/EventDate'],'yyyy-MM-ddTHH:mmZ')

 

 The formatDateTime for End time would look something like this:

 

formatDateTime(outputs('Get_item')?['body/EndDate'],'yyyy-MM-ddTHH:mmZ')

 

SharePoint Events Calendar:

ekarim2020_2-1628501132460.png

ekarim2020_0-1628500730710.png

ekarim2020_1-1628500879002.png

Outlook Calendar:

ekarim2020_3-1628501168317.png

Ellis

View solution in original post

Perfect, it works perfectly!!

Thank you very much.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Kudoed Authors
Users online (3,175)