UiPath Documentation
activities
latest
false
Productivity activities

GetFolders

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

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?

Connect

Need help? Support(opens in new window)

Want to learn? UiPath Academy(opens in new window)

Have questions? UiPath Forum(opens in new window)

Stay updated