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

Productivity activities

Last updated Feb 19, 2026

GetWorkbooks

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

Namespace: UiPath.MicrosoftOffice365.Activities.Api

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

Syntax

IReadOnlyCollection<IWorkbook> GetWorkbooks(
	IDriveItem parentFolder = null,
	string search = "",
	int maxResults = 200
)
IReadOnlyCollection<IWorkbook> GetWorkbooks(
	IDriveItem parentFolder = null,
	string search = "",
	int maxResults = 200
)

Parameters

parentFolder IDriveItem (Optional) : The location where to search for files and folders. If null, the root folder is used for search.

search String (Optional) : The query text used to search for workbooks.

maxResults Int32 (Optional) : The maximum number of workbooks to return.

Return value

IReadOnlyCollection<IWorkbook> - The list of workbooks.

  • Syntax
  • Parameters
  • Return value

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo
Trust and Security
© 2005-2026 UiPath. All rights reserved.