File and Document Management
Google Drive

Google Drive modules

19min
after connecting to the google drive app, you can use the following modules to build your {{scenario plural lowercase}} file/folder watch files in a folder retrieves file details when a file is added or modified in the specified folder field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx watch files select whether you want to watch new files in the folder (by created time) or modified files (by modified time) choose a drive select whether you want to watch files in one of the following locations my drive shared with me google shared drive ( this option is available for google workspace users only other users will get the invalid value error) select the folder to be watched navigate to the folder you want to watch file types to watch select file type to filter watched files by limit set the maximum number of files make will return during one execution cycle watch all files retrieves file details when a file in your google drive is added or modified field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx watch files select whether you want to watch new files in the folder (by created time), or modified files (by modified time) choose a drive select whether you want to watch files in one of the following locations my drive shared with me google shared drive ( this option is available for google workspace users only other users will get the invalid value error) file types to watch select file type to filter watched files by limit set the maximum number of files make will return during one execution cycle watch folders retrieves folder details when a new folder is created or the existing one is modified field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx watch files select whether you want to watch new folders (by created time), or modified folders (by modified time) choose a drive select whether you want to watch folders in one of the following locations my drive shared with me google shared drive ( this option is available for google workspace users only other users will get the invalid value error) choose a folder navigate to the folder you want to watch for the folders limit set the maximum number of folders make will return during one execution cycle search for files/folders searches for files or folders based on search criteria field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx choose a drive select the location where you want to search for files or folders my drive shared with me google shared drive ( this option is available for google workspace users only other users will get the invalid value error) choose a folder navigate to the folder you want to search for the files or folders retrieve select whether you want to search for files, folders, or both search select the type of the search you want to perform search within file/folder names full text search enter custom search query query enter the query (differs based on the search type selected in the search field above) search within file/folder names enter a part of the file name or full file name (including the suffix) you want to search select whether you want to search exact term or search the file/folder name that contains the entered term in the search options field below full text search enter any search term you want search in your google drive enter custom search query enter the custom search query add the folder selected above to the query searches for the folder n the parents collection this finds all files and folders located directly in the folder selected above limit set the maximum number of files or folders make will return during one execution cycle download a file downloads a file from your google drive field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx choose a drive select the location where you want to download a file my drive shared with me google shared drive ( this option is available for google workspace users only other users will get the invalid value error) enter a file id select whether you want to enter (map) the file id manually or select the file using the menu file id enter (map) the file id of the file you want to download convert google documents/spreadsheets/slides/drawings files to format select the file type of the file you want to download and target file type you want convert to the file to create a file from text creates a file in the selected google drive folder field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx choose a drive select the location where you want to create the file my drive shared with me google shared drive ( this option is available for google workspace users only other users will get the invalid value error) new text file location select the target location where you want to create the new file file name enter the name for the new file file content enter the plain text content of the new file convert the file to google docs document enable this to set the file's mimetype to application/vnd google apps document instead of text/plain create a folder creates a folder in the specified location field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx choose a drive select the location where you want to create the folder my drive shared with me google shared drive ( this option is available for google workspace users only other users will get the invalid value error) new folder location select the target location where you want to create the new folder new folder's name enter the name for the new folder share folder if enabled, the folder is shared to anyone with the link of the folder (web view link) otherwise the web view link works for the owners only type select permission for the folder a permission grants a user, group, domain, or the world access to a folder hierarchy role select the role to define what users can do with a file or folder for the list of operations users can perform for each role please refer to the roles https //developers google com/drive/api/v3/ref roles documentation create a file/folder shortcut creates a new file or folder shortcut field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx original file's drive select the original drive my drive shared with me google shared drive ( this option is available for google workspace users only other users will get the invalid value error) select file/folder select whether you want to create a shortcut for a file or folder file id/ folder id select the file id (or folder id) of the file (or folder) whose shortcut you want to create use domain admin access select whether to issue the request as a domain administrator ( this option is available for google workspace users only other users will get the invalid value error) shared drive select the shared drive to create a file or folder shortcut ( this option is available for google workspace users only other users will get the invalid value error) new drive location select the new drive location my drive shared with me google shared drive ( this option is available for google workspace users only other users will get the invalid value error) new folder location select the target folder where you want to create a shortcut to the file or folder use domain admin access select whether to issue the request as a domain administrator ( this option is available for google workspace users only other users will get the invalid value error) shared drive select the shared drive to create a file or folder shortcut ( this option is available for google workspace users only other users will get the invalid value error) copied file name enter a new name for the file or folder leave blank if you do not want to change the original file name upload a file uploads a file to your google drive field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx enter a folder id select whether you want to enter (map) the folder id manually or select the folder using the menu folder id enter (map) the folder id of the folder you want to upload the file to new drive location select the new drive location my drive shared with me google shared drive ( this option is available for google workspace users only other users will get the invalid value error) new folder location select the target location where you want to upload a file use domain admin access select whether to issue the request as a domain administrator if set to yes , then all shared drives of the domain in which the requester is an administrator are returned shared drive select the shared drive whose file you want to upload new file name enter the new file name if you want to change the name of the file file enter the file's details file name enter a name for the file including the extension, for example, invoice xml data enter the file data manually convert a file select whether to convert the file update a file updates a file's metadata or content field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx enter a file id select whether you want to enter (map) the file id manually or select the file using the menu choose a drive select the location where you want to update a file my drive shared with me google shared drive ( this option is available for google workspace users only! other users will get the invalid value error) file id enter (map) the file id of the file you want to update use domain admin access select whether to issue the request as a domain administrator if set to yes , then all shared drives of the domain in which the requester is an administrator are returned shared drive select the shared drive to update a file new updated file name enter the new file name if you want to change the name of the file file description enter the new file description change file content enable this option to change the file content the new file must have the same mimetype as the original file source file map the file you want to upload from the previous module (e g http > get a file or dropbox > get a file), or enter the file name and file data manually keep revision forever select whether to retain the revision you can retain only 200 revisions for the file forever if the limit is reached, you need to delete pinned revisions rename a folder renames an existing folder field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx enter a file id select whether you want to enter (map) the file id manually or select the file using the menu folder id enter the folder id which you want to rename choose a drive select the location where you want to rename a folder my drive shared with me google shared drive ( this option is available for google workspace users only! other users will get the invalid value error) new folder location select the new location for the folder use domain admin access select whether to issue the request as a domain administrator if set to yes , then all shared drives of the domain in which the requester is an administrator are returned shared drive select the new location in the shared drive for the folder folder name enter a new name for the folder folder description enter a description for the folder move a file/folder to trash moves a file or folder to the trash field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx enter a file/folder id select whether you want to enter (map) the file or folder id manually or select the file or folder using the menu select file/folder select whether you want to move the file or folder to the trash file id / folder id enter (map) the file id (or folder id) of the file (or folder) you want to move to the trash delete a file/folder permanently deletes a file or folder field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx enter a file/folder id select whether you want to enter (map) the file or folder id manually or select the file or folder using the menu select file/folder select whether you want to permanently delete a file or folder file id / folder id enter (map) the file id (or folder id) of the file (or folder) you want to permanently delete copy a file copies a file to the new location field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx original file's drive select the drive you want to copy the file from my drive shared with me google shared drive ( this option is available for google workspace users only other users will get the invalid value error) original file id enter (map) the file id of the original file you want to copy new drive location select the target drive you want to copy the file to my drive shared with me google shared drive ( this option is available for google workspace users only other users will get the invalid value error) new folder location select the target folder you want to copy the file to copied file name enter the new file name if you want to change the name of the file in the target location move a file/folder moves a file or folder to the new target location field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx choose a drive select the drive you want to move the file or folder from my drive shared with me google shared drive ( this option is available for google workspace users only other users will get the invalid value error) select file/folder select whether you want to move a file or folder file id/ folder id enter (map) the file id (or folder id) of the file (or folder) you want to move new drive location select the target drive you want to move the file or folder to my drive shared with me google shared drive ( this option is available for google workspace users only other users will get the invalid value error) new folder location select the target folder you want to move the file or folder to file/folder access get a share link retrieves and sets up permissions and sends share link for a file or folder field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx choose a drive select the drive that contains the file or folder you want to share my drive shared with me google shared drive ( this option is available for google workspace users only other users will get the invalid value error) use domain admin access select whether to issue the request as a domain administrator if set to yes , then all shared drives of the domain in which the requester is an administrator are returned select file/folder select whether you want to share a file or folder file id/ folder id enter (map) the file id (or folder id) of the file (or folder) you want to share role select the role granted by this permission to define what users can do with a file or folder owner writer commenter reader organizer file organizer owner writer commenter reader organizer file organizer for the list of operations users can perform for each role, please refer to the roles documentation type select permission for the file or folder permission grants a user, group, domain, or the anyone access to a folder hierarchy or to the file email address / organization domain enter the email address or organization domain you want to restrict access to the file or folder to send notification email the notification email with the link will be sent to the specified email address send notification email enter the expiration time the expiration time must be future and cannot be more than a year in the future allow file discovery enable to define whether the permission allows the file to be discovered through search update a file/folder access updates an existing file or folder access field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx choose a drive select the drive whose access you want to update my drive shared with me google shared drive ( this option is available for google workspace users only other users will get the invalid value error) select select whether you want to move a file or folder file id select the file id whose access you want to update folder id select the folder id whose access you want to update use domain admin access select whether to issue the request as a domain administrator if set to yes , then all shared drives of the domain in which the requester is an administrator are returned shared drive select the shared drive whose file or folder access you want to update role select the role owner writer commenter reader revoke a file/folder access revokes a file or folder access field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx choose a drive select the drive whose access you want to update my drive shared with me google shared drive ( this option is available for google workspace users only other users will get the invalid value error) select select whether you want to revoke access from a file or folder file id select the file id whose access you want to update folder id select the folder id whose access you want to update use domain admin access select whether to issue the request as a domain administrator if set to yes , then all shared drives of the domain in which the requester is an administrator are returned shared drive select the shared drive whose file or folder access you want to update permission name select the permission you want to revoke google shared drive (for google workspace users only) the google workspace administrator privilege is required in order to use these modules watch shared drives triggers when a shared drive is created field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx search select whether you want to filter returned drives by custom search query or query filter query filter set the filter to filter returned shared drives by name , organizer count , or member count you can also use and and or operators to combine the filter query enter your custom search query for example name contains 'make' and membercount >= 20 for more info, see the documentation https //developers google com/drive/api/v3/search shareddrives limit set the maximum number of drives make will return during one execution cycle search for shared drives searches for the google shared drive field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx search select whether you want to filter returned drives by custom search query or query filter query filter set the filter to filter returned shared drives by name , organizer count , or member count you can also use and and or operators to combine the filter query enter your custom search query for example name contains 'make' and membercount >= 20 for more info, see the documentation https //developers google com/drive/api/v3/search shareddrives limit set the maximum number of drives make will return during one execution cycle create a shared drive creates a new shared drive field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx new shared drive's name enter the name for the new shared drive get a shared drive retrieves shared drive details field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx shared drive id enter (map) the id or select the drive you want to retrieve details about update a shared drive updates an existing drive's name and/or restrictions field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx shared drive id enter (map) the id or select the drive you want to update name enter the new name for the shared drive restrictions enable or disable restrictions that apply to this shared drive or items inside this shared drive admin managed restrictions select whether administrative privileges on this shared drive are required to modify restrictions copy requires writer permission select whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters when this restriction is enabled, it will override the similarly named field to true for any file inside this shared drive domain users only select whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs this restriction may be overridden by other sharing policies controlled outside of this shared drive drive members only select whether access to items inside this shared drive is restricted to its members delete a shared drive field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx shared drive id enter (map) the id or select the drive you want to delete file revision list file revision retrieves a list of file's revisions field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx enter a file id select whether you want to enter (map) the file id manually or select the file using the menu choose a drive select the location my drive shared with me google shared drive ( this option is available for google workspace users only other users will get the invalid value error) use domain admin access select whether to issue the request as a domain administrator if set to yes , then all shared drives of the domain in which the requester is an administrator are returned shared drive select or map the shared drive whose file revisions you want to list file id select the file id whose revisions you want to list file id enter the file id whose revisions you want to list limit set the maximum number of revisions make will return during one execution cycle the default value is 10 get a file revision gets a specified file's revision field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx enter a file id select whether you want to enter (map) the file id manually or select the file using the menu choose a drive select the location my drive shared with me google shared drive ( this option is available for google workspace users only other users will get the invalid value error) use domain admin access select whether to issue the request as a domain administrator if set to yes , then all shared drives of the domain in which the requester is an administrator are returned shared drive select or map the shared drive whose file's revision you want to retrieve file id select the file id whose revision you want to retrieve file id enter the file id whose revision you want to retrieve revision id enter the revision id to retrieve acknowledge abuse select whether the user knowledges the risk of downloading known malware or other abusive files update a file revision updates an existing file's revision field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx enter a file id select whether you want to enter (map) the file id manually or select the file using the menu choose a drive select the location my drive shared with me google shared drive ( this option is available for google workspace users only other users will get the invalid value error) file id select the file id whose revision you want to update use domain admin access select whether to issue the request as a domain administrator if set to yes , then all shared drives of the domain in which the requester is an administrator are returned shared drive select or map the shared drive whose file's revision you want to update file id enter the file id whose revision you want to update revision id enter the revision id you want to update keep forever select whether to keep this revision forever, even if it is no longer the head revision if not set, the revision will automatically purge 30 days after newer content is uploaded you can set a maximum of 200 revisions for a file this applies only to files with binary content in drive publish auto select whether to republish subsequent revisions automatically this is only applicable to docs editors files published select whether this revision is published this is only applicable to docs editors files published outside domain select whether this revision is published outside the domain this is only applicable to docs editors files delete a file revision deletes a file's revision field description connection google drive docid\ ct1o6esjm1f0xm3wk5nbx enter a file id select whether you want to enter (map) the file id manually or select the file using the menu choose a drive select the location my drive shared with me google shared drive ( this option is available for google workspace users only other users will get the invalid value error) use domain admin access select whether to issue the request as a domain administrator if set to yes , then all shared drives of the domain in which the requester is an administrator are returned shared drive select or map the shared drive whose file's revision you want to delete file id select the file id whose revision you want to delete file id enter the file id whose revision you want to delete revision id enter the revision id you want to delete other watch comments triggers when a comment is added or modified on the selected file field description connection establish a connection to your google drive account watch comments select whether you want to watch new comments ( by created time ) or modified comments ( by modified time ) choose a drive select the location my drive shared with me google shared drive ( this option is available for google workspace users only other users will get the invalid value error) file id navigate to and select the file you want to watch for comments limit set the maximum number of comments make will return during one execution cycle get a folder id for a path retrieves a folder id for a folder path field description connection establish a connection to your google drive account folder path enter the folder path whose folder id you want to retrieve for example, abc/xyz it is not recommended to have subfolders with the same name inside one folder get a file/folder path for an id retrieves a file or folder path for an id field description connection establish a connection to your google drive account enter a file/folder id select whether you want to enter (map) the file/folder id manually or select the file using the menu choose a drive select the location my drive shared with me google shared drive ( this option is available for google workspace users only other users will get the invalid value error) select file/folder select the file/folder whose path you want to retrieve file id enter the file id whose path you want to retrieve folder id enter the folder id whose path you want to retrieve use domain admin access select whether to issue the request as a domain administrator if set to yes , then all shared drives of the domain in which the requester is an administrator are returned shared drive select the shared drive of the file/folder whose path you want to retrieve make an api call allows you to perform a custom api call field description connection establish a connection to your google drive account url enter a path relative to https //www googleapis com/drive for example, /v3/files for the list of available endpoints, refer to the google drive api documentation method select the http method you want to use get to retrieve information for an entry post to create a new entry put to update/replace an existing entry patch to make a partial entry update delete to delete an entry headers enter the desired request headers you don't have to add authorization headers; we already did that for you query string enter the request query string body enter the body content for your api call the following api call returns all files in your google drive the result can be found in the module's output under bundle > body > files in our example, 30 files were returned