Get

Gets a revision's metadata or content by ID

3 variables
20 variables

Gets a revision's metadata or content by ID

Authorization

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

  • See, edit, create, and delete all of your Google Drive files
  • View and manage its own configuration data in your Google Drive
  • View and manage Google Drive files and folders that you have opened or created with this app
  • View and manage metadata of files in your Google Drive
  • View metadata for files in your Google Drive
  • View the photos, videos and albums in your Google Photos
  • See and download all your Google Drive files

Input

This building block consumes 3 input parameters

  = Parameter name
  = Format

fileId STRING Required

The ID of the file

revisionId STRING Required

The ID of the revision

acknowledgeAbuse BOOLEAN

Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media

Output

This building block provides 20 output parameters

  = Parameter name
  = Format

exportLinks OBJECT

Links for exporting Google Docs to specific formats

exportLinks.customKey.value STRING

Links for exporting Google Docs to specific formats

id STRING

The ID of the revision

keepForever BOOLEAN

Whether to keep this revision forever, even if it is no longer the head revision. If not set, the revision will be automatically purged 30 days after newer content is uploaded. This can be set on a maximum of 200 revisions for a file. This field is only applicable to files with binary content in Drive

kind STRING

Identifies what kind of resource this is. Value: the fixed string "drive#revision"

lastModifyingUser OBJECT

Information about a Drive user

lastModifyingUser.displayName STRING

A plain text displayable name for this user

lastModifyingUser.emailAddress STRING

The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester

lastModifyingUser.kind STRING

Identifies what kind of resource this is. Value: the fixed string "drive#user"

lastModifyingUser.me BOOLEAN

Whether this user is the requesting user

lastModifyingUser.permissionId STRING

The user's ID as visible in Permission resources

lastModifyingUser.photoLink STRING

A link to the user's profile photo, if available

md5Checksum STRING

The MD5 checksum of the revision's content. This is only applicable to files with binary content in Drive

mimeType STRING

The MIME type of the revision

modifiedTime DATE_TIME

The last time the revision was modified (RFC 3339 date-time)

originalFilename STRING

The original filename used to create this revision. This is only applicable to files with binary content in Drive

publishAuto BOOLEAN

Whether subsequent revisions will be automatically republished. This is only applicable to Google Docs

published BOOLEAN

Whether this revision is published. This is only applicable to Google Docs

publishedOutsideDomain BOOLEAN

Whether this revision is published outside the domain. This is only applicable to Google Docs

size INTEGER

The size of the revision's content in bytes. This is only applicable to files with binary content in Drive