Help Centre › Functions & Formulas
List files in a folder or matching a query.
Add it to a process
In the process designer, open the Add step tab. Find List files in a folder or matching a query under Google Workspace › Drive, or type its name in the search box, and drag it onto the canvas.
Fields
| Field | Required | What it does |
|---|---|---|
| Query | No | Google Drive search query to filter files |
| Folder id | No | Google Drive ID of the folder to list files from |
| Variable | No | Name of the variable where the result will be stored |
See all Google Workspace steps.
Errors
| Error | Description |
|---|---|
| Folder not found | The specified folder ID does not exist |
| Invalid query | The query filter syntax is invalid |
Tips
- Use the query filter for advanced filtering, e.g. "mimeType = 'application/pdf'" for PDF files only
- Without a folder ID, all files in the Drive are returned
- Use with a loop to process each file in the list