web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 3LqybcWykzgeSZuNgcSr5k
Power Automate - Building Flows
Answered

Issues updating SharePoint list item Date field using Send HTTP Request to SharePoint

Like (0) ShareShare
ReportReport
Posted on 10 Sep 2020 19:47:53 by 96

Hi everyone and thank you in advance for helping me identify what I'm doing wrong.

I am able to update list item string and number fields just fine using Send HTTP Request to SharePoint but not Date Time fields.

 

This is the body.  Yes, in this example I am hard coding the value for simplicity right now.

{
"Event_x0020_Date": "6/7/2020"
}

 

And this is the output:

{
  "status"400,
  "message""Cannot convert a primitive value to the expected type 'Edm.DateTime'. See the inner exception for more details.\r\nclientRequestId: 973395f0-5f20-49f6-8401-1cc1afade3f6\r\nserviceRequestId: 43ae789f-408a-b000-18a1-c4821d86161f",
  "errors": [
    "-1",
    "Microsoft.SharePoint.Client.InvalidClientQueryException"
  ]
}
 
Any idea how the string needs to be formatted in the http body?
I have the same question (0)
  • CFernandes Profile Picture
    8,305 Most Valuable Professional on 11 Sep 2020 at 03:15:16
    Re: Issues updating SharePoint list item Date field using Send HTTP Request to SharePoint

    @Ellsworth03054 

     

    I have come across this problem in the past with the HTTP action and the issue was with formatting the date in the JSON file. 

    {
    "Event_x0020_Date": "2020-09-11T18:30:49-0300"
    }

    Reference article: 

    http://blog.plataformatec.com.br/2014/11/how-to-serialize-date-and-datetime-without-losing-information/ 

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Verified answer
    PrasadAthalye Profile Picture
    on 11 Sep 2020 at 00:14:31
    Re: Issues updating SharePoint list item Date field using Send HTTP Request to SharePoint

    Can you try following format and see if that works?

     

    2020-06-18T19:00:17Z

     

    OR

     

    2020-06-18 19:00:17

     

    Mark this as an answer if this resolves your issue.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 954 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 650 Moderator

#3
trice602 Profile Picture

trice602 327 Super User 2025 Season 2

Last 30 days Overall leaderboard