Activities
latest
false
Productivity Activities
Last updated Jun 3, 2024

GetFile

Gets a file from Google Drive by relative path or by URL, ID or full path.

Namespace: UiPath.Gsuite.Activities.API

Assembly: UiPath.Gsuite.Activities.API (in UiPath.Gsuite.Activities.API.dll)

Overloads

OverloadDescription
GetFile(IFolder, String)Gets a file from Google Drive by relative path.
GetFile(String, IdentificationType)Gets a file from Google Drive by url, id or full path.

GetFile(IFolder, String)

Gets a file from Google Drive by relative path.

public IFile GetFile(
	IFolder parent,
	string relativePath
)public IFile GetFile(
	IFolder parent,
	string relativePath
)
parent IFolder
The base location on Google Drive where to search the file.
relativePath String
The relative file path to the parent folder including the name and extension.
Return value
IFile - The file retrieved

GetFile(String, IdentificationType)

Gets a file from Google Drive by URL, ID or full path.
public IFile GetFile(
	string identifier,
	IdentificationType type = IdentificationType.UrlOrId
)public IFile GetFile(
	string identifier,
	IdentificationType type = IdentificationType.UrlOrId
)
identifier String
The identifier (id, url, full path) of the file to retrieve.
type IdentificationType (Optional)
Specifies the type of identifier provided (ID, URL or full path).
Return value
IFile - The file retrieved
  • Overloads
  • GetFile(IFolder, String)
  • GetFile(String, IdentificationType)

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.