SharePoint REST API update modified date for the items, but I need to make change without update the date, how I can do this with REST API?
2 Answers
As far as I know, and as I have already wrote in this thread, the SystemUpdate
and the UpdateOverwriteVersion
methods are not implemented in the Client OM and in the REST API. If you decompile the Microsoft.SharePoint
assembly (for example using Reflector
or JetBrains dotPeek
), you can see the lack of the attributes on these methods, that would be needed to client access.
-
As of August 2016, CSOM in SharePoint Online does support SystemUpdate. dev.office.com/blogs/…– Martin DCommented Oct 17, 2016 at 2:52
This worked like a charm!
item["StatusIndicator"] = "Red";
item["Modified"] = item["Modified"];
item["Created"] = item["Created"];
item["Editor"] = item["Editor"];
item["Author"] = item["Author"];
item.Update();
context.Load(item);
context.ExecuteQuery();