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

Productivity Activities

Last updated Dec 6, 2024

MoveFile

Moves a file to the specified destination folder in OneDrive or SharePoint.

Namespace: UiPath.MicrosoftOffice365.Activities.Api

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

Syntax

IFile MoveFile(
	IFile file,
	IFolder destination = null,
	string newName = null,
	ConflictBehavior conflictBehavior = ConflictBehavior.Fail
)IFile MoveFile(
	IFile file,
	IFolder destination = null,
	string newName = null,
	ConflictBehavior conflictBehavior = ConflictBehavior.Fail
)

Parameters

file IFile
The file to move.
destination IFolder (Optional)
The destination folder where to move the specified file. If not specified, it defaults to OneDrive root folder.
newName String (Optional)
An optional new name given to the file after it is moved. If left blank, it retains the original name.
conflictBehavior ConflictBehavior (Optional)
What is the expected behavior when a file with the same name already exists in the destination folder.

Return value

IFile - The moved file.
  • Syntax
  • Parameters
  • Return value

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.