Рет қаралды 3,571
This video explains how to update SharePoint system fields Created, Created By, Modified, Modified By.
REST API
_api/web/lists/getbyTitle('ajlist')/items({Here place the id of the record})/ValidateUpdateListItem
Header
Content-Type application/json;odata=verbose
Http Body
{
"formValues":[
{
"FieldName":"Author",
"FieldValue":"[{'Key':'i:0#.f|membership|youremail@yourdomain.com'}]"
},
{
"FieldName":"Created",
"FieldValue":"19/01/2000"
},
{
"FieldName":"Editor",
"FieldValue":"[{'Key':'i:0#.f|membership|youremail@yourdomain.com'}]"
},
{
"FieldName":"Modified",
"FieldValue":"21/01/2000"
}
]
}