Is there a solution to detect site metadata change using CurrentChangeToken?

Senior Member

I am using 'Get-PnPProvisioningTemplate' to backup site metadata. Running this cmdlet against SharepointOnline may take a long time. So I would like to run it against a site only if the site metadata has changed (say a new page was added or webpart was added, branding file changed,...) since I ran the cmdlet last time.  I was looking at the CurrentChangeToken object in the object  'Microsoft.SharePoint.Client.Site' returned by Get-PnPSite. However in the token '{Version};{Scope};{Guid};{ChangeTime};{ChangeNumber}', the  {ChangeTime};{ChangeNumber} keeps changing even when there is no apparent activity in any of the sites in my tenant. Is the token changing due to my query itself? Is there any way to detect whether site metadata (excluding List Item and Doc library) got modified using the change token or any other mechanism?

0 Replies