activities
latest
false
UiPath logo, featuring letters U and I in white
Productivity Activities
Last updated Nov 15, 2024

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)

IFile GetFile(
	string url
)IFile GetFile(
	string url
)
url String
The Url of the file of interest.

GetFile(IFolder, String)

IFile GetFile(
	IFolder parent,
	string relativePath
)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)

IFile GetFile(
	string id,
	string siteUrl,
	string libraryName
)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
Trust and Security
© 2005-2024 UiPath. All rights reserved.