Forum Discussion
Is there any way to update SharePoint library metadata without updating modified columns?
I got no answers but would like to bring this up again - there must be some kind of workaround!?
I believe Microsoft have created a library maintenance disaster by making it impossible to update metadata without changing modified/modified by columns.
What can I do?
Erik Wettergren
Have a look at validateupdatelistitem (link)
We use this to change metadata in bulk (https://www.slimapplications.com/product/bulkmetadatamanager/). It allows for setting metadata and manipulating the modified field. Most likely you can also manipulate the modified by field.
// get modified and modified by for the existing SharePoint item
// generate a request to set the metadata and set the modified and modified by fields
// execute the request
Paul | SLIM Applications
- Erik WettergrenMay 18, 2022Iron Contributor
Hi Paul_HK_de_Jong and thanks for these links and suggetions.
However, it seems like at least validateupdatelistitem is for on-prem SharePoint only. I need this for Online.
- Paul_HK_de_JongMay 18, 2022Iron Contributorwe use it for SharePoint Online all the time. Works like a charm.
Onyl drawback is that if you set 10 fields and 1 fails then all fields fall. Make sure the error handling is present.- Erik WettergrenMay 18, 2022Iron ContributorOK, then I will definitely give this a try - thanks for the tips