Activities
latest
false
Productivity Activities
Last updated Jun 3, 2024

GetFolders

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

GetFolders(IFolder, Boolean, String, Int32)

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

GetFolders(DriveItemFilter, IFolder, Boolean, Boolean, Int32)

Retrieves a filtered list of folders from the specified OneDrive or SharePoint location.
Retrieves a filtered list of folders from the specified OneDrive or SharePoint location.Retrieves a filtered list of folders from the specified OneDrive or SharePoint location. 
filter DriveItemFilter
Define an advanced search criteria to filter the folders by. This advanced search is not supported for personal Microsoft accounts.
parent IFolder (Optional)
The location where to search for folders. If null, the root folder is used for search.
trimDuplicates Boolean (Optional)
Specifies whether to remove the duplicate 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 folders to return.

Return value

IReadOnlyCollection<IFolder> - The list of 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.