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

Productivity Activities

Last updated Mar 19, 2025

GetItem

Gets a file or folder from OneDrive or SharePoint.

Namespace: UiPath.MicrosoftOffice365.Activities.Api

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

Overloads

OverloadDescription
GetItem(String)Gets a file or folder from OneDrive or SharePoint by Url.
GetItem(IFolder, String)Gets a file or folder from OneDrive or SharePoint by relative path.
GetItem(String, String, String)Gets a file or folder from OneDrive or SharePoint by ID.

GetItem(String)

 [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]IDriveItem GetItem(
	string url
)
url String
The Url of the file or folder of interest.

GetItem(IFolder, String)

 [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]IDriveItem GetItem(
	IFolder parent,
	string relativePath
)
parent IFolder
The parent folder.
relativePath String
The relative file or folder path to the parent folder including the name and extension.

GetItem(String, String, String)

 [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]IDriveItem GetItem(
	string id,
	string siteUrl,
	string libraryName
)
id String
The ID of the file or folder of interest.
siteUrl String
The Url of a SharePoint site.
libraryName String
The document library within the specified SharePoint site.

Return value

IDriveItem - The file or folder retrieved.

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
© 2005-2025 UiPath. All rights reserved.