RPAFiles
Get file by name
Get file by name
Gets the detailed information of a file from its path in Google Drive.
Options
Drive connection
Select the Connection action set up in the flow.
File path on Drive
Enter the full path of the file, including its name and extension, for example /Documentos/relatorio.pdf.
Only search in "Shared with me"
Turn this on when the file was shared with the connected account instead of owned by it. The first part of the path is then looked up in Shared with me: /report.pdf points to a file shared directly with the account, and /Client folder/report.pdf to a file inside a shared folder. Default: off.
Drive
Enter the name of the drive to reach. Leave it empty to use "My Drive".
Returns
Javascript code
js
actions["action-id"].id // unique identifier of the file (Text)
actions["action-id"].name // file name (Text)
actions["action-id"].extension // file extension (Text)
actions["action-id"].createdTime // creation date (Text)
actions["action-id"].modifiedTime // date of the last change (Text)
actions["action-id"].shared // whether the file is shared (Boolean)
Field selection
- id — unique identifier of the file (Text)
- name — file name (Text)
- extension — file extension (Text)
- createdTime — file creation date (Text)
- modifiedTime — date of the last change (Text)
- shared — whether the file is shared (Boolean)
Rules and Conditions
- The Drive connection and File path on Drive fields are required.
- If the file is not found, the robot stops with an error.
- With Only search in "Shared with me" on, the Drive field is not used to find the first part of the path.