Skip to main content

Search File Or Folder

Description

Google Drive: Search File Or Folder step searches the file(s) or folder(s) on Google Drive.

Reference

API documentation:

Configurations

No.Field NameDescription
1Step nameName of the step as it appears in the workflow workspace. This name has to be unique in a single workflow.
Connection:Refer Prerequisites and References above to get the connection attributes.
2Client IDSpecify Client ID of the Google project.
The data type is String. This field is mandatory.
Client Secret:
3Accept Values from fieldsLeave checkbox unchecked to accept Client Secret value from a field in the previous steps of the stream using a drop down list.
Else enable checkbox for Secret Key field to appear as Text box.
4Client SecretSpecify Client Secret of the Google project.
Client Secret is entered using a widget. If checkbox above is enabled Client Secret field appears as Text box and accepts static values or variables. Else if checkbox above is disabled Client Secret field appears as a drop down containing values from previous steps - to select from.
The data type is String. This field is mandatory.
Refresh Token:
5Accept Values from fieldsLeave checkbox unchecked to accept Secret Key value from a field in the previous steps of the stream using a drop down list.
Else enable checkbox for Secret Key field to appear as Text box.
6Refresh TokenSpecify a Refresh Token to obtain a new Access Token.
Note:Refresh Token is entered using a widget. If checkbox above is enabled Refresh Token field appears as Text box and accepts static values or variables. Else if checkbox above is disabled Refresh Token field appears as a drop down containing values from previous steps - to select from.
The data type is String. This field is mandatory.
7Test ConnectionClick Test Connection button to verify whether the connection is available or not.Client ID, Client Secret and Refresh Token are mandatory to authenticate Google Drive.
For the purpose of verification fields coming from previous steps are not allowed since field values can only be accessed when workflow is in running state. Static values and environment variables are allowed.
Input Field:
1Search QueryTo search for a specific set of file(s) or folder(s), use this query Field.
Examples:
1. name = 'xyz'
2. name contains 'xyz' and name contains 'pqr'
3. mimeType = 'application/vnd.google-apps.folder'
You can customize the search query to match your specific needs. For more information on the search query syntax, see the Google Drive API documentation link:https://developers.google.com/drive/api/guides/search-files#examples
The data type is String. This field is mandatory.
Output Field:
1Search ResultSpecify the output variable name in the field. The default output variable name is “SearchResult”.
On the successful execution, it holds the output of plugin step in JSON format.