FlowmageDocs

Create folder

BetaChanges data

Makes a new folder in OneDrive or SharePoint.

Settings

SettingWhat it is
ConnectionRequiredThe Microsoft Graph connection the step signs in with.
Drive of"user" or "group" or "site" or "drive"
OwnerRequiredThe person's id or sign-in address, the group's id, the site's id or the drive's id — whichever Drive of names.
In folderThe folder to make it in: its id, or its path from the drive's root starting with /. Leave empty for the root.
Folder nameRequiredOne name — a / would make it a path.
If the name is taken"use" or "rename" or "fail"
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `microsoft-graph`)
driveOf"user" or "group" or "site" or "drive", by default "user"
ownertext
foldertext
nametext
conflictBehavior"use" or "rename" or "fail", by default "use"

Output

FieldType
idFolder idstring
webUrlLink in Microsoft 365string
folderobject
alreadyExistedIt was there alreadyboolean
Sample output, and the expression for each field
  • alreadyExistedfalse
  • folder
    • folder{}
    • id"01DIR"
  • id"01DIR"
  • webUrl"https://contoso.sharepoint.com/2026"

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "conflictBehavior": "use",
    "connection": "<connection id>",
    "driveOf": "user",
    "folder": "",
    "name": "<folder name>",
    "owner": "<owner>"
  },
  "label": "Create folder",
  "type": "graph.createFolder",
  "version": 1
}