cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Prodigy
Post Prodigy

Create an Event (V4) String was not recognized as a valid DateTime error

Afternoon all

 

I'm trying to create an appointment in users Outlook calendars upon approval. I'm using the Create an Event (V4) action. I ws getting an error which suggested that Flow didn't like the output from the Start and End date fields. So I formatted the dates using two Compose actions, the flow is working fine up to the Create Event action where I'm getting the following error:

 

String was not recognized as a valid DateTime.
clientRequestId: xxx-f14f-4974-8c01-e1512aac36ad. The time zone is set to UK on both the Flow and on the site. Where am I going wrong?

 

Badrequest.png

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Post Prodigy
Post Prodigy

I actually worked out how to do this! I changed the expression to

formatDateTime(triggerOutputs()?['body/End_date'],'MM-dd-yyyy')and it worked. I include it here for anyone who comes across the same problem.

View solution in original post

1 REPLY 1
Highlighted
Post Prodigy
Post Prodigy

I actually worked out how to do this! I changed the expression to

formatDateTime(triggerOutputs()?['body/End_date'],'MM-dd-yyyy')and it worked. I include it here for anyone who comes across the same problem.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Kudoed Authors
Users online (9,439)