RPAFiles
List Files in a Folder
List Files in a Folder
Lists the files in a specific folder of Google Drive.
Options
Drive connection
Select the Connection action set up in the flow.
Folder path on Drive
Enter the path of the folder whose files will be listed, for example /Documentos. Use / to list the drive root.
Only search in "Shared with me"
Turn this on to list files shared with the connected account. The first part of the path is then looked up in Shared with me: / lists the files shared directly with the account, and /Client folder lists the files inside that shared folder. Default: off.
Drive name
Enter the name of the drive to reach. Leave it empty to use "My Drive".
Returns
Javascript code
js
actions["action-id"].files // list of files found (List)
Field selection
- files — list of files found. Each item holds
id,nameandextension(List)
Rules and Conditions
- The Drive connection and Folder path on Drive fields are required.
- Only files are returned — to list folders, use the List Folders action.
- Use
/in the path to list the drive root. - With Only search in "Shared with me" on, the Drive name field is not used to find the first part of the path.