{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"Automated Workflows","type":"markdown"},"seo":{"title":"Google Drive File and Folder operations","description":"Everything about Mosaic Journeys, SDKs, and APIs","siteUrl":"https://developer.transmitsecurity.com/","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"google-drive-file-and-folder-operations","__idx":0},"children":["Google Drive File and Folder operations"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use this operation to search for files and folders in Google Drive. Refer to ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/guides/automated-workflows/integrations/builtin/app-nodes/ts-wf-nodes-base.googledrive"},"children":["Google Drive"]}," for more information on the Google Drive node itself."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"search-files-and-folders","__idx":1},"children":["Search files and folders"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use this operation to search for files and folders in a drive."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Enter these parameters:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Credential to connect with"]},": Create or select an existing ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#"},"children":["Google Drive credentials"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Resource"]},": Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["File/Folder"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Operation"]},": Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Search"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Search Method"]},": Choose how you want to search:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Search File/Folder Name"]},": Fill out the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Search Query"]}," with the name of the file or folder you want to search for. Returns files and folders that are partial matches for the query as well."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Advanced Search"]},": Fill out the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Query String"]}," to search for files and folders using ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.google.com/drive/api/guides/search-files"},"children":["Google query string syntax"]},"."]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Return All"]},": Choose whether to return all results or only up to a given limit."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Limit"]},": The maximum number of items to return when ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Return All"]}," is disabled."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Filter"]},": Choose whether to limit the scope of your search:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Drive"]},": The drive you want to search in. By default, uses your personal \"My Drive\". Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["From list"]}," to choose the drive from the dropdown list, ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["By URL"]}," to enter the URL of the drive, or ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["By ID"]}," to enter the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["driveId"]},".",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["You can find the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["driveId"]}," by visiting the shared drive in your browser and copying the last URL component: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://drive.google.com/drive/u/1/folders/driveId"]},"."]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Folder"]},": The folder to search in. Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["From list"]}," to choose the folder from the dropdown list, ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["By URL"]}," to enter the URL of the folder, or ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["By ID"]}," to enter the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["folderId"]},".",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["You can find the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["folderId"]}," by visiting the shared folder in your browser and copying the last URL component: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://drive.google.com/drive/u/1/folders/folderId"]},"."]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["What to Search"]},": Whether to search for ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Files and Folders"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Files"]},", or ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Folders"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Include Trashed Items"]},": Whether to also return items in the Drive's trash."]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"options","__idx":2},"children":["Options"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Fields"]},": Select the fields to return. Can be one or more of the following: ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["[All]"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["explicitlyTrashed"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["exportLinks"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["hasThumbnail"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["iconLink"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ID"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Kind"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["mimeType"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Name"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Permissions"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Shared"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Spaces"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Starred"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["thumbnailLink"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Trashed"]},", ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Version"]},", or ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["webViewLink"]},"."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Refer to the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developers.google.com/drive/api/reference/rest/v2/files/list"},"children":["Method: files.list | Google Drive"]}," API documentation for more information."]}]},"headings":[{"value":"Google Drive File and Folder operations","id":"google-drive-file-and-folder-operations","depth":1},{"value":"Search files and folders","id":"search-files-and-folders","depth":2},{"value":"Options","id":"options","depth":3}],"frontmatter":{"priority":"high","seo":{"title":"Google Drive File and Folder operations"}},"lastModified":"2025-11-23T13:19:36.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/guides/automated-workflows/integrations/builtin/app-nodes/ts-wf-nodes-base.googledrive/file-folder-operations","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}