Skip to main content
Roberty Studio
RPAFolders

List folders

List folders

Lists the folders at a specific path in Google Drive.


Options​

Drive connection​

Select the Connection action set up in the flow.

Folder path​

Enter the path of the folder to list, for example /Documentos. Use / to list the drive root.

Only search in "Shared with me"​

Turn this on to list folders shared with the connected account. The first part of the path is then looked up in Shared with me: / lists the folders shared directly with the account, and /Client folder lists the subfolders of 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"].folders // list of folders found (List)

Field selection​

  • folders — list of folders found. Each item holds id and name (List)

Rules and Conditions​

  • The Drive connection and Folder path fields are required.
  • Only folders are returned — to list files, use the List Files 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.