RPASharePoint
Create folder in a drive
Create folder in a drive
Creates a new folder in a SharePoint drive.
- Version 2.0
- Version 1.0
Options
Drive
Select the action that gets the SharePoint drive: Get a drive from the list or Get drive by name.
Path to create the folder
Enter the path of the folder where the new folder will be created, from the root of the drive, for example Documents/2024. Leave it empty to create it in the root of the drive.
New folder name
Enter the name of the new folder.
Options
SharePoint account
Select the SharePoint connection set up in the flow.
Drive
Select the drive the folder will be created in.
Root folder ID (optional)
Enter the ID of the folder the new folder will be created in. Leave it empty to create it at the root.
New folder name
Enter the name of the new folder.
Returns
Javascript code
js
actions["action-id"].createdDateTime // the date and time the folder was created (Text)
actions["action-id"].id // the ID of the folder (Text)
actions["action-id"].lastModifiedDateTime // the date and time the folder was last modified (Text)
actions["action-id"].name // the name of the folder (Text)
actions["action-id"].webUrl // the URL of the folder (Text)
actions["action-id"].createdBy // the name and email of the user who created the folder (Any)
actions["action-id"].lastModifiedBy // the name and email of the user who last modified the folder (Any)
actions["action-id"].parentReference // the reference to the parent folder (Any)
Field selection
- createdDateTime — the date and time the folder was created (Text)
- id — the ID of the folder (Text)
- lastModifiedDateTime — the date and time the folder was last modified (Text)
- name — the name of the folder (Text)
- webUrl — the URL of the folder (Text)
- createdBy — the name and email of the user who created the folder (Any)
- lastModifiedBy — the name and email of the user who last modified the folder (Any)
- parentReference — the reference to the parent folder (Any)
Rules and Conditions
- The Drive and New folder name fields are required.
- If an item with the same name already exists in the destination, the folder is created with an automatically changed name.
- If Microsoft Graph rejects the operation (item not found, insufficient permission, etc.), the action fails with the error message returned by the API.