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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard