cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PowerAppUser875
Frequent Visitor

Updating a SharePoint Date and Time Column using "Send an HTTP an Request SharePoint" action

I'm trying to update a SharePoint date and time column via the "Send an HTTP Request to SharePoint" action, and I'm struggling to get the formatting correct.  Does anyone have the correct syntax or can tell me what's wrong with this action?  Thanks!

flow.png

 

flow2.PNG

 

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

Hi @PowerAppUser875,

 

Could you try to change the body to this format? In other words, remove the curly brackets around the date time value.

 

{
  "__metadata": {
    "type": "SP.Data.@{variables('ListName')}ListItem"
  },
 "Title": "New title",
 "DateAssigned": "2020-11-24T18:39:05Z"
}

 

updatelistitem_datetime02.png

View solution in original post

2 REPLIES 2
Expiscornovus
Super User
Super User

Hi @PowerAppUser875,

 

Could you try to change the body to this format? In other words, remove the curly brackets around the date time value.

 

{
  "__metadata": {
    "type": "SP.Data.@{variables('ListName')}ListItem"
  },
 "Title": "New title",
 "DateAssigned": "2020-11-24T18:39:05Z"
}

 

updatelistitem_datetime02.png

View solution in original post

Thanks!  I was at a total loss for what was wrong.  Such an obvious issue! 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,749)