cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
darrenfloyd666
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
darrenfloyd666
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
darrenfloyd666
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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,374)