activities
latest
false
UiPath logo, featuring letters U and I in white

Productivity activities

Last updated Feb 19, 2026

GetFolder

Gets a folder 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
GetFolder(IFolder, String)Gets a folder from Google Drive by relative path.
GetFolder(String, IdentificationType)Gets a folder from Google Drive by URL, ID or full path.

GetFolder(IFolder, String)

Gets a folder from Google Drive by relative path.

public IFolder GetFolder(
	IFolder parent,
	string relativePath
)
public IFolder GetFolder(
	IFolder parent,
	string relativePath
)

parent IFolder : The base location on Google Drive where to search the folder.

relativePath String : The relative folder path to the parent folder including the name.

Return Value

IFolder - The folder retrieved.

GetFolder(String, IdentificationType)

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

public IFolder GetFolder(
	string identifier = null,
	IdentificationType type = IdentificationType.UrlOrId
)
public IFolder GetFolder(
	string identifier = null,
	IdentificationType type = IdentificationType.UrlOrId
)

identifier String (Optional) : The identifier (id, url, full path) of the folder to retrieve. If left null, will return the root folder.

type IdentificationType (Optional) : Specifies the type of identifier provided (ID, URL or full path).

Return Value

IFolder - The folder retrieved.

  • Overloads
  • GetFolder(IFolder, String)
  • GetFolder(String, IdentificationType)

Was this page helpful?

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