Create a Folder in a Document Library

This procedure is part of the SharePoint Book (BDK). To use this book, you must first learn it in your agent.

Overview

This procedure creates a new folder at the root of the given SharePoint document library using the Microsoft Graph API.

Input Concepts

Concept
Description
Type
Required
Default Value

document library

The document library where the folder will be created.

sharepoint document library

Yes

folder name

The name of the folder to be created.

text

Yes

conflict behavior

The behavior when a conflict occurs. Possible values are 'fail', 'replace', 'rename'.

text

No

rename

Output Concepts

Concept
Description
Type

folder

A sharepoint document library folder representing the created folder.

sharepoint folder reference

Examples

Create a folder named "My New Folder" in the document library "My Documents" the folder name is "My New Folder"

get site from sharepoint whose name is "Human Resources"
get some site's document libraries
create a folder in the first library

Last updated

Was this helpful?