activities
latest
false
UiPath logo, featuring letters U and I in white
Productivity Activities
Last updated Nov 6, 2024

GetFiles

Retrieves a list of files from the specified OneDrive or SharePoint location.

Namespace: UiPath.MicrosoftOffice365.Activities.Api

Assembly: UiPath.MicrosoftOffice365.Activities.Api (in UiPath.MicrosoftOffice365.Activities.Api.dll)

Overloads

OverloadDescription
GetFiles(IFolder, Boolean, String, Int32)Retrieves a list of files from the specified OneDrive or SharePoint location.
GetFiles(DriveItemFilter, IFolder, Boolean, Boolean, Int32)Retrieves a filtered list of files from the specified OneDrive or SharePoint location.

GetFiles(IFolder, Boolean, String, Int32)

Retrieves a list of files from the specified OneDrive or SharePoint location.

IReadOnlyCollection<IFile> GetFiles(
	IFolder parent = null,
	bool trimDuplicates = false,
	string simpleSearchQuery = null,
	int maxResults = 200
)IReadOnlyCollection<IFile> GetFiles(
	IFolder parent = null,
	bool trimDuplicates = false,
	string simpleSearchQuery = null,
	int maxResults = 200
)
parent IFolder (Optional)
The location where to search for files. If null, the root folder is used for search.
trimDuplicates Boolean (Optional)
Specifies whether to remove the duplicate files from the search results.
simpleSearchQuery String (Optional)
The query text used to search for files across several fields like filename and file content.
maxResults Int32 (Optional)
The maximum number of files to return.

GetFiles(DriveItemFilter, IFolder, Boolean, Boolean, Int32)

IReadOnlyCollection<IFile> GetFiles(
	DriveItemFilter filter,
	IFolder parent = null,
	bool trimDuplicates = false,
	bool includeSubfolders = false,
	int maxResults = 200
)IReadOnlyCollection<IFile> GetFiles(
	DriveItemFilter filter,
	IFolder parent = null,
	bool trimDuplicates = false,
	bool includeSubfolders = false,
	int maxResults = 200
)
filter DriveItemFilter
Define an advanced search criteria to filter the files by. This advanced search is not supported for personal Microsoft accounts.
parent IFolder (Optional)
The location where to search for files. If null, the root folder is used for search.
trimDuplicates Boolean (Optional)
Specifies whether to remove the duplicate files from the search results.
includeSubfolders Boolean (Optional)
Specifies whether to expand the search to include all subfolders of the selected location.
maxResults Int32 (Optional)
The maximum number of files to return.

Return value

IReadOnlyCollection<IFile> - The list of files retrieved.

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.