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
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,472)