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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Issues updating ShareP...
Power Automate
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?
Categories:
I have the same question (0)
  • Verified answer
    thjeffri Profile Picture
    Microsoft Employee on at

    Hi Ellsworth03054,

     

    I'm pretty sure this would be the correct format of your value: 2020-06-07T00:00:00

     

    That format is year-month-day, then T, then hours:months:seconds.  If your field is date only, then the hours:months:seconds is 00:00:00.

     

    Here is an example of a previous thread on this forum asking a similar question: https://powerusers.microsoft.com/t5/General-Power-Automate/Date-Time-Format-for-SharePoint-Calendar/m-p/451333/highlight/true#M44920

     

    I hope this helps!

     

    Tom

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard