I want to iterate through all previous versions of a Google sheet and extract some information from all the versions along with version timestamp.
Is there any easy to do so? I couldn't find any API which could loop through the previous versions.
I want to iterate through all previous versions of a Google sheet and extract some information from all the versions along with version timestamp.
Is there any easy to do so? I couldn't find any API which could loop through the previous versions.
You could try using the Revision.list
method to retrieve the Revision history of a file. Referencing this answer from a similar thread looks like you will need to download and re-upload back the file so you can have the specific version that you want available as there is no way to make a copy programatically using the Revisions Drive API.