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

Productivity activities

Last updated Feb 19, 2026

GetFolders

Retrieves a list of folders from the specified Google Drive location.

Namespace: UiPath.Gsuite.Activities.API

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

Syntax

public IReadOnlyCollection<IFolder> GetFolders(
	IFolder parent = null,
	bool starredOnly = false,
	DriveItemFilter filter = null,
	int maxResults = 200
)
public IReadOnlyCollection<IFolder> GetFolders(
	IFolder parent = null,
	bool starredOnly = false,
	DriveItemFilter filter = null,
	int maxResults = 200
)

Parameters

parent IFolder (Optional) : The location on Google Drive where to search for folders. If null, the root folder is used for search.

starredOnly Boolean (Optional) : Specifies whether to return only starred folders.

filter DriveItemFilter (Optional) : Specifies additional filters for the query.

maxResults Int32 (Optional) : The maximum number of folders to return.

Return value

IReadOnlyCollection<IFolder> - The list of folders retrieved from the specified location.

  • Syntax
  • Parameters
  • Return value

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.