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

Productivity Activities

Last updated Mar 19, 2025

GetFiles

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

Syntax

 public IReadOnlyCollection<IFile> GetFiles(
	IFolder parent = null,
	bool starredOnly = false,
	DriveItemFilter filter = null,
	int maxResults = 200
)public IReadOnlyCollection<IFile> GetFiles(
	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 files. If null, the root folder is used for search.
starredOnly Boolean Optional
Specifies whether to return only starred files.
filter DriveItemFilter Optional
Specifies additional filters for the query.
maxResults Int32 (Optional)
The maximum number of files to return.

Return value

IReadOnlyCollection<IFile> - The list of files retrieved from the specified location

Was this page helpful?

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