Skip to content

Google Drive: Search Files

Plugin ID: eca_google_drive_search_files

Available since: 1.0.0

Advanced file search in Google Drive with query syntax support for filtering by name, type, date, owner, and more.

Fields

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
    <ul>
      <li><strong>name contains "report"</strong> - Files with "report" in the name</li>
      <li><strong>mimeType="application/pdf"</strong> - PDF files only</li>
      <li><strong>createdTime > "2024-01-01"</strong> - Files created after Jan 1, 2024</li>
      <li><strong>parents in "folder_id"</strong> - Files in specific folder</li>
      <li><strong>starred = true</strong> - Starred files</li>
      <li><strong>trashed = false</strong> - Non-trashed files</li>
      <li><strong>shared = true</strong> - Shared files</li>
      <li><strong>"me" in owners</strong> - Files owned by authenticated user</li>
    </ul>
Authentication Type — config key: auth_type

Choose between API Client (OAuth2) or Service Account authentication.

Type: select · Required: yes · Default: api_client

Allowed values: api_client, service_account

Authentication Source — config key: auth_from

Choose whether to select authentication directly or use a token for dynamic selection.

Type: select · Required: yes · Default: direct

Allowed values: direct, token

API Client — config key: api_client_id

Search and select an API Client for OAuth2 authentication.

Type: textfield · Required: no · Default: empty string

Service Account — config key: service_account_id

Search and select a Service Account for server-to-server authentication.

Type: textfield · Required: no · Default: empty string

Client ID from Token — config key: auth_client_from_token

Token that resolves to a client ID (e.g., [user:field_google_client_id]). The token should contain just the client ID, not the auth type prefix.
This field supports tokens.

Type: textfield · Required: no · Default: empty string

Search Query — config key: search_query

Google Drive search query. Examples: "name contains 'report'", "mimeType='application/pdf'", "createdTime > '2024-01-01'", "parents in 'folder_id'". Leave empty to list all accessible files.
This field supports tokens.

Type: textfield · Required: no · Default: empty string

Maximum Results — config key: max_results

Maximum number of files to return (1-1000). Default: 10.

Type: number · Required: no · Default: 10

Page Token — config key: page_token

Token for pagination. Use next_page_token from previous search results to get more files.
This field supports tokens.

Type: textfield · Required: no · Default: empty string

Search Results Token Name — config key: search_token_name

Optional token name to store search results. Accessible as [token_name:files:0:name], [token_name:total_files], [token_name:next_page_token], etc.
This field supports tokens.

Type: textfield · Required: no · Default: empty string