Microsoft OneDrive icon

Microsoft OneDrive

Consume Microsoft OneDrive API

Folder → Create

AI-generated

Summary

Create folders in OneDrive from a folder name or slash-separated path. The node creates each path segment in sequence, using the optional parent folder ID for the first segment and each newly created folder as the parent for the next.

Inputs

  • Name (required) — Folder name or slash-separated path, such as /Pictures/2021.
  • Parent Folder ID — Optional ID of the folder in which to create the first path segment. If omitted, creation starts at the OneDrive root.

Output shape

A list of items containing the Microsoft Graph response for the last folder created.

For a path with multiple segments, the node makes a separate create request for each segment and returns only the final response. If a response has no folder ID, creation of further segments stops.

Examples

Example 1: Create a folder in the OneDrive root

Set Name to Reports; leave Parent Folder ID empty.

Example 2: Create a nested folder under an existing folder

Set Name to 2021/Q1 and Parent Folder ID to the ID of the existing parent folder.

Links

Discussion