Categories
Automation Classification Data Intranets

SharePoint Admin Hack: Update Metadata Without Affecting Modified Columns

Discover three practical methods to update SharePoint metadata without changing the critical Modified/Modified By columns. Learn the simple folder-moving technique requiring no coding, plus Power Automate and CSOM approaches for more complex scenarios. Perfect for SharePoint admins managing document integrity during bulk updates

The default, auto-generated ‘Modified by’ and ‘Modified’ columns in SharePoint document libraries provide an excellent means of quickly knowing who last worked on the document. However bulk-updates to metadata on all library documents compromises the integrity of these columns, changing them to the updater’s name and the date of the update.

This post explains three simple solutions to ensure the modified columns retain their original values.

Move it

The easiest way requires no scripting or Power Automate skills; simply:

  1. Move the content out of the folder into another
  2. Under Settings/Set default column values configure the labels you want applied in the original folder
  3. Move the content back into the folder

Note that the label has been applied, but the modified and modified by columns maintain their integrity throughout the process.

Though this approach works it may introduce a lot of move/change label/move back work where the content in a folder has multiple labels depending what the content is. Fear not, there are two alternatives!

Automate It

Export your document library into a spreadsheet and update the content with the metadata you want to bulk-apply. Then head to Power Automate, CSOM, or PnP PowerShell and ensure you’re using the ‘validateUpdateListItem’ action.

Guidance on these approaches is detailed in the following blog posts and comments:

Thanks for reading, and best wishes maintaining the integrity of your organisation’s content.

Leave a Reply

Your email address will not be published. Required fields are marked *