UiPath Documentation
activities
latest
false
Productivity activities

Create Folder

Create Folder activity that creates a folder at the specified location in OneDrive or SharePoint.

UiPath.MicrosoftOffice365.Activities.Files.CreateFolderConnections

Description​

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

Scopes​

This activity requires the following scopes:

  • Sites.ReadWrite.All

OR

  • Sites.Selected
Note:

Sites.Selected works only for SharePoint locations that a SharePoint administrator has granted to your application. Browsing doesn't list any sites, so enter the URL or the ID of the file or folder instead. For setup steps, refer to Restrict access to specific SharePoint sites.

Project compatibility​

Windows | Cross-platform

Configuration​

  • Microsoft OneDrive & SharePoint - The connection for the Office 365 account to use in the activity.
  • Folder name - The name of the new folder. This property supports String variables and string formatted values. Select the plus menu to switch to the field:
    • Folder Path - The relative folder path to create (e.g. a\b\c). Intermediate segments are created automatically. Conflict resolution applies only to the last segment.
  • Parent folder - The parent folder of the new folder. Browse the OneDrive or SharePoint folders and select a parent folder. This field accepts IResource input. Use the plus menu to select one of the following options:
    • Reload Folder Data - Select this option if you have modified your folders and need to retrieve the latest data.
    • Enter ID - This option displays the following fields:
      • File or folder ID - The ID of the parent folder. This field supports String variables and string formatted values.
      • SharePoint site address - The address of the SharePoint site that contains the folder. This field supports String variables and string formatted values.
      • SharePoint document library - The document library that contains the folder. This field supports String variables and string formatted values.
    • Enter Url - This option displays the following field:
      • File or folder Url - The URL of the parent folder. This field supports String variables and string formatted values.
    • Use Folder Variable - Enter a variable for the parent folder.
  • If folder already exists - Specifies what happens if a folder with the same name already exists in the destination folder. Select one of the following options from the dropdown list:
    • Don't replace - The existing folder is kept and no changes are made.
    • Auto rename - The new folder is created with a different name to avoid conflicts.

Output​

  • Folder - Reference to the new folder the activity added to use in other activities, such as Move File/Folder.

Example​

For more details, also check the following resources:

  • Description​
  • Scopes​
  • Project compatibility​
  • Configuration​
  • Output​
  • Example​

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated