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
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

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (43,559)