Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

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

(0) ShareShare
ReportReport
Posted on 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?
  • CFernandes Profile Picture
    8,295 Most Valuable Professional on at
    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 at
    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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1