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

Productivity activities

Last updated Feb 19, 2026

MoveFile

Moves a folder to the specified destination folder in Google Drive.

Namespace: UiPath.Gsuite.Activities.API

Assembly: UiPath.Gsuite.Activities.API (in UiPath.Gsuite.Activities.API.dll)

Syntax

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

Parameters

file IFile : The file to move.

destination IFolder : The Google Drive location where to move the file.

newName String (Optional) : The name given to the moved file. If left blank, the moved file will retain 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
Trust and Security
© 2005-2026 UiPath. All rights reserved.