a-burge
a-burge

Reputation: 1584

How do I name the current version of a Google spreadsheet, document or presentation using Google Apps Script?

I'm trying to give the current version of a Google spreadsheet a name using Google Apps Script. In the GUI I would do File -> Version history -> Name current version but since I need to do this to multiple files, I want to achieve this using a script.

I've found the revisions reference but that's not helping much.

This question touches on a similar topic, but I've found the revisions.items.splice(-1) doesn't always list the current version but rather the latest version.

Upvotes: 8

Views: 1507

Answers (1)

Jescanellas
Jescanellas

Reputation: 2608

This is not possible to do at this moment. I've found a similar Feature Request. You can click on the star next to the issue number to give more priority to the request and to receive updates.

It's not exactly the same but since it's asking for API support, "update the revisions" would presumably be supported too.

Upvotes: 5

Related Questions