Skip to main content

Posts

Showing posts with the label JSOM SharePoint online

System Update in SharePoint.

When we write code to update the SharePoint list item, we use the Client-side object model or Javascript object model. When we write the code we get two options for updating the list item  update()  and  systemupdate(). update vs system update SharePoint? update() method : When we use the update() method it updates the "Modified"  and "Modified By" column and if the Versioning option is enabled then it also updates the version column. systemupdate() : When we use systemupdate() method. this method did not update the   "Modified"  and  "Modified By"  column and Version. So when you do not want to update these columns while updating use the systemupdate() method. Let's view the code written in Jsom to update the item using the systemupdate (). function updateItem() { var clientContext = new SP.ClientContext('enter your site url'); var oList = clientContext.get_web().get_lists().getByTitle('enter title of your list...