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

Productivity Activities

Last updated Dec 6, 2024

GetFilesAndFolders

Retrieves a list of files and folders 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
GetFilesAndFolders(IFolder, Boolean, String, Int32)Retrieves a list of files and folders from the specified OneDrive or SharePoint location.
GetFilesAndFolders(DriveItemFilter, IFolder, Boolean, Boolean, Int32)Retrieves a filtered list of files and folders from the specified OneDrive or SharePoint location.

GetFilesAndFolders(IFolder, Boolean, String, Int32)

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

GetFilesAndFolders(DriveItemFilter, IFolder, Boolean, Boolean, Int32)

IReadOnlyCollection<IDriveItem> GetFilesAndFolders(
	DriveItemFilter filter,
	IFolder parent = null,
	bool trimDuplicates = false,
	bool includeSubfolders = false,
	int maxResults = 200
)IReadOnlyCollection<IDriveItem> GetFilesAndFolders(
	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 and folders by. This advanced search is not supported for personal Microsoft accounts.
parent IFolder (Optional)
The location where to search for files and folders. If null, the root folder is used for search.
trimDuplicates Boolean (Optional)
Specifies whether to remove the duplicate files and folders 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 and folders to return.

Return value

IReadOnlyCollection<IDriveItem> - The list of files and folders 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.