DocsWorkflowsComponentsStoragestorage:google:drive:list

storage:google:drive:list

Lists Google Drive files visible to the app's drive.file grant, using a connection resolved from the connections store.

Options

NameTypeDescription
connectionstringThe connection id to use; empty resolves the only google-drive connection
querystringA drive search expression, e.g. name contains 'report'
folderstringA folder id whose children to list; empty searches across all files visible to the app
limitintHow many files to return (default 100)

Outputs

NameTypeDescription
countintHow many files were returned
files[]FileThe matching files
  ↳ idstringThe provider's file id
  ↳ namestringThe file name
  ↳ mime_typestringThe file's mime type
  ↳ sizeint64The file size in bytes
  ↳ modifiedstringThe last modification time in RFC 3339
  ↳ folderboolWhether the entry is a folder

Example

name: List workflow reports in Drive
actions:
  - name: reports
    component: storage:google:drive:list
    vars:
      query: name contains 'report'
      limit: 10

outputs:
  count: "{{ reports.count }}"
  files: "{{ reports.files }}"