Finding the modification count of a file in SharePoint Online using script
Is there any way to find the modification count of a file in SharePoint Online using script? I used VersionHistory, which gave me the correct result, but it doesn’t work if the version history of a file has been deleted. Is there any alternative method to get the modification count using script?
Hi tariq,
Thank you for posting in this community.
Unfortunately, SharePoint does not have a script to return the number of times a file has been modified.
In fact, SharePoint doesn’t save the number of times a file has been modified but counts the number of times a file has been modified using the version history. If the version history is deleted, then we will not be able to get the true number of file modifications.
If you have any questions, don’t hesitate to ask, we’re here to help you further if needed.
Your VAF Team.