UiPath Documentation
activities
latest
false
Productivity activities

GetFile

Gets a file from OneDrive or SharePoint.

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?

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