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

Productivity activities

Last updated Feb 19, 2026

CreateFolder

Creates a folder at the specified location in OneDrive or SharePoint.

Namespace: UiPath.MicrosoftOffice365.Activities.Api

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

Syntax

IFolder CreateFolder(
	string name,
	IFolder parent = null,
	ConflictBehavior conflictBehavior = ConflictBehavior.Fail
)
IFolder CreateFolder(
	string name,
	IFolder parent = null,
	ConflictBehavior conflictBehavior = ConflictBehavior.Fail
)

Parameters

name String : The name of the new folder.

parent IFolder (Optional) : The parent folder where to create the new folder.

conflictBehavior ConflictBehavior (Optional) : What is the expected behavior when a folder with the same name already exists in the destination folder.

Return value

IFolder - The new folder.

  • 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.