MS OneDrive Business icon

MS OneDrive Business

Access MS OneDrive for Business and SharePoint

Folder → Create

AI-generated

Summary

Create a folder in OneDrive Business

Inputs

  • driveType — Type of drive to access (user, site, or shared link)
  • sharedLinkUrl (required) — Paste the sharing link of the shared folder (right-click → Share → Copy link in OneDrive/SharePoint)
  • userId — User email or ID; empty uses the authenticated user
  • siteId — The SharePoint site to access
  • folderSelection — How to specify the parent folder (browse, path, id, or sharing link)
  • folderSharingUrl (required) — Paste the sharing link copied from OneDrive or SharePoint (Share → Copy link)
  • parentId (required) — The parent folder where the new folder will be created
  • folderName (required) — Name of the folder to create
  • browseFolderF1 — Choose from the list, or specify an ID using an expression
  • browseFolderF2 — Select a subfolder to go deeper, or leave as is to use Level 1 as the target
  • browseFolderF3 — Select a subfolder to go deeper, or leave as is to use Level 2 as the target
  • browseFolderF4 — Select a subfolder to go deeper, or leave as is to use Level 3 as the target
  • browseFolderF5 — Select the deepest target folder here, or leave as is to use Level 4 as the target

Output shape

a single folder object

Returns the created folder's full Microsoft Graph representation; no pagination, errors propagate as node failures.

Examples

Example 1: Create a folder under the root of the authenticated user's OneDrive

driveType=user, folderSelection=browse, parentId=root, folderName=ProjectX

Example 2: Create a folder inside a specific SharePoint site

driveType=site, siteId=contoso.sharepoint.com, folderSelection=browse, parentId=Documents, folderName=Reports

Example 3: Create a folder using a shared link as the parent

driveType=sharedLink, sharedLinkUrl=https://1drv.ms/f/s12345, folderSelection=link, folderSharingUrl=https://1drv.ms/f/s12345, parentId=, folderName=Archive

Links

Discussion