Recently, I’ve seen quite a few people asking about creating Folders in Document Libraries using Microsoft Flow.

 

In my case I have a Document Library called Documents1 and I want to create a folder called New Folder

Using the Send an HTTP request to SharePoint action it is really a 5 minute task.

Using the following REST API call I can get hold of the option to create a new folder.

_api/Web/GetFolderByServerRelativeUrl('Documents1')/Folders

Just supply the body that specifies the name of your folder.

{ '__metadata': { 'type': 'SP.Folder' }, 'ServerRelativeUrl': '/Documents1/New Folder'}

You could of course also do the same without the verbose option and nometadata instead. The body would then look something like this:

{'ServerRelativeUrl': '/Documents1/New Folder'}

Then when you run the flow you will see that the HTTP call is successful

 

And my folder is created.

Advertisements