Edo
Edo

Reputation: 1589

How to programmatically retrieve version number of a library?

I want to update a cell in a spreadsheet when a new version is saved but I can't find a way to retrieve the version number ...

UPDATE: I create an issue

Upvotes: 1

Views: 1080

Answers (2)

user1508746
user1508746

Reputation: 47

If you are willing to write a little Apps Script you may use one of the properties functions, either the Script Properties or the User Properties. These are described here: https://developers.google.com/apps-script/service_properties

I use the script properties to attach version numbers to files created when I run scripts, so not exactly the problem you're asking about, but related.

Upvotes: 0

Jan Kleinert
Jan Kleinert

Reputation: 1809

Currently, there's not a way to retrieve this information. Please raise this in the issue tracker, and be sure to include details about your specific use case. For example, do you want to be able to retrieve information about all versions or only the most recent version?

Upvotes: 5

Related Questions