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

Productivity activities

Last updated Mar 13, 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?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated