SharePoint Online - Create a document set

Use the SharePoint Online - Create a document set action A tool for building the processes, logic, and direction within workflows. to create a new document set in a document library of a SharePoint Online site.

For more information about the SharePoint Online connector, go to SharePoint Online.

Configure the SharePoint Online - Create a document set action

Important: Before inserting variables in the action configuration, you must manually type or select the values and populate other dependent fields in order to retrieve the output data. Once configured, you can insert variables to the required fields.

  1. Add the action to the workflow and open the action configuration panel. For more information, see Add, rename, and copy actions.

  1. Select a Connection. If you do not have a connection, see Add a connection.
  2. Note: 

    Only the connections created with the List and libraries authentication method are available in the drop-down list.

    For more information about authentication methods for SharePoint Online connections, see Authentication methods for SharePoint Online connections.

  1. Type a SharePoint site URL and click Retrieve libraries.

  2. Example: https://domain.sharepoint.com/sites/hr

    All the libraries in the specified site are displayed in the Document library field drop-down list.

  1. Select the Document library to create the document set. The Add field button is enabled to enter values for the columns/fields of the created item document set. If the selected list has mandatory columns they are displayed by default to enter a value.
  2. Select the Content type of the document set.
  3. Specify values for the mandatory fields/columns that are displayed.

SharePoint Online - Create document set action fields and settings

Important: Before inserting variables in the action configuration, you must manually type or select the values and populate other dependent fields in order to retrieve the output data. Once configured, you can insert variables to the required fields.

Section Field Description Variable types
(unlabeled)

Connection Credentials and other settings required to pass data between the workflow and the indicated service, which could be a cloud service, business application, or content store.

SharePoint Online connection to connect to the SharePoint Online site.

To refresh the available connections, click Refresh.

(n/a)
New document set

SharePoint site URL

The URL of the SharePoint Online site containing the document library you want to use.

To retrieve the libraries for the SharePoint site URL, type the SharePoint site URL and click Retrieve libraries.

Example: https://domain.sharepoint.com/sites/hr

Text, Decimal, Integer, Boolean, DateTime, Collection
  Document library

The document library to create the document set.

When you specify the SharePoint Online site URL, all the document libraries in the selected site will be available to select from in the Document library drop-down list.

The Add fields button is displayed when the Document library is selected.

Text, Decimal, Integer, Boolean, DateTime, Collection
  Folder path

Destination folder or folder path to create the new document set. If the folder does not exist in the specified path, a new folder is created.

Examples: FolderA/SubFolderA

Boolean, Collection, DateTime, Decimal, Integer, Text
  Content type The SharePoint content type to apply to the document set. Boolean, Collection, DateTime, Decimal, Integer, Text
  Add field

(Displayed only when the Document library is selected.)

Displays selections to select and add columns (fields) that you want to populate for the new document set.

The selected columns of the document set will be updated with these values.

The values you enter must meet SharePoint Online formatting requirements for the related column type. See, Valid values for added fields, by column type.

The fields you add are displayed for you to enter the value. The document is created in the document library with these values populated.

(n/a)
Output Result

Stores the result of the action in an object with the following variables:

  • Document set ID: Integer variable to store the ID of the created document set.
  • Document set URL: Text variable to store the URL of the created document set.
Object