List

List the versions of a script project

3 variables
6 variables

List the versions of a script project

Authorization

To use this building block you will have to grant access to at least one of the following scopes:

  • Create and update Google Apps Script projects
  • View Google Apps Script projects

Input

This building block consumes 3 input parameters

  = Parameter name
  = Format

scriptId STRING Required

The script project's Drive ID

pageToken STRING

The token for continuing a previous list request on the next page. This should be set to the value of nextPageToken from a previous response

pageSize INTEGER

The maximum number of versions on each returned page. Defaults to 50

Output

This building block provides 6 output parameters

  = Parameter name
  = Format

versions[] OBJECT

A resource representing a script project version. A version is a "snapshot" of a script project and is similar to a read-only branched release. When creating deployments, the version to use must be specified

versions[].description STRING

The description for this version

versions[].versionNumber INTEGER

The incremental ID that is created by Apps Script when a version is created. This is system assigned number and is immutable once created

versions[].scriptId STRING

The script project's Drive ID

versions[].createTime ANY

When the version was created

nextPageToken STRING

The token use to fetch the next page of records. if not exist in the response, that means no more versions to list