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

Productivity Activities

Last updated Mar 19, 2025

GetFile

Gets a file from OneDrive or SharePoint.

Namespace: UiPath.MicrosoftOffice365.Activities.Api

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

Overloads

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

GetFile(String)

 [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]IFile GetFile(
	string url
)
url String
The Url of the file of interest.

GetFile(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]IFile GetFile(
	IFolder parent,
	string relativePath
)
parent IFolder
The parent folder.
relativePath String
The relative file path to the parent folder including the name and extension.

GetFile(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]IFile GetFile(
	string id,
	string siteUrl,
	string libraryName
)
id String
The ID of the file of interest.
siteUrl String
The Url of a SharePoint site.
libraryName String
The document library within the specified SharePoint site.

Return value

IFile - The file 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.