cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
avt
Level: Powered On

Sharepoint Datetime

Hello, I have two SHP lists and a flow that copies contents of items from list A to list B.

 

As of last week (not sure when precisely) this flow is broken with:

"status": 502, "message": "The string was not recognized as a valid DateTime.

There is an unknown word starting at index 0.",

 

I can see that flow is trying to input date in format: 2017-06-27, which is strange as the source and target lists are formated in the same way 06/27/2017.

 

The trigger is: when a SHP item is modified and the output is also 2017-06-27.

 

SHP is set to US datetime formatting.

 

Is there a way to parse it from 2017-06-27 to 06/27/2017?

 

I looked into https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

but am afraid that it would take me too long to figure it out by myself. Anyone had similiar problem?

 

1 REPLY 1
Community Support Team
Community Support Team

Re: Sharepoint Datetime

Hi @avt,

 

I think the date format is not the issue.

Flow would use the UTC format for the date time, and after the date string has been submitted to the data source, it will then change to the format defined at the data source side.

Would you please share a screenshot of the running details for the failed flow? Specially the SharePoint Update item Action, make sure the Error message is captured.

 

Further, if you would like to Input the date string manually, then make sure the string format is as below:

2017-06-27T02:18:52Z

Flow input boxes do not support the other date formats currently.

 

Besides, if you would like to have Microsoft Flow recognize the time format, we could take use of formatDateTime() function, with the help of the Compose Action, after that, use the output of the compose Action as the Value input in the SharePoint Update item action.

53.PNG

54.PNG

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 51 members 4,666 guests
Please welcome our newest community members: