Skip to main content
Files

Get File by name

Get File by name

Gets the detailed information of a file from its path in Google Drive.


Options

Google Drive account

Select the Connection action set up in the flow.

Drive (optional)

Enter the name of the drive to reach. Leave it empty to use "My Drive".

File path

Enter the full path of the file, including its name and extension, for example /Documentos/relatorio.pdf.

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 (Yes/No)

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 (Yes/No)

Rules and Conditions

  • The Google Drive account and File path fields are required.
  • If the file is not found, the robot stops with an error.