How to create a SharePoint Document Library with Power Automate
In this article I will show you the best way to create a workflow that will create a SharePoint Document library with Power Automate.
There is no default out of the box Power Automate action to create a SharePoint document library with Power Automate. To achieve this, you will have to use a Power Automate action that is called “Send an HTTP request to SharePoint”.
This action is completely free as it is part of the SharePoint Online connector within Power Automate.
You DO NOT have to use the now premium HTTP connector which is now a premium connector. The SharePoint Flow connector is completely free when using Power Automate.
Previously the HTTP connector was free to use. Since it has been made premium in the past year workflows that had previously been using this will stop functioning unless you purchase a license(s) that includes the usage of premium connectors.
Video Guide: Creating a SharePoint Document Library with Power Automate
This article will contain a video demonstration. It will also contain all the code that you will require. So, you can simply copy and paste this into your own Power Automate workflow.
You can watch the full demonstration video of how to achieve this by clicking on the image below.
Webinar and Blog by: Dougie.email@example.com
Steps: Create a SharePoint Document Library with Power Automate
- Go to Microsoft Power Automate (Previously known as Flow)
- Either create a new Power Automate workflow or open an existing workflow you wish to update with the ability to programmatically create SharePoint document libraries.
- Add a new Power Automate action to the page called “Send an HTTP request to SharePoint”.
- Site Address: Specify the URL of the SharePoint site you will be creating the SharePoint document libraries on.
- Method: Select POST from the drop down.
- Uri: _api/web/lists/
- Headers Key: content-type:
- Headers Value: application/json;odata=verbose
“Description”: “This is a SharePoint Document Library for storing documents related to our clients.”,
“Title”: “Client Documents”
10. Update the “Description” property of the body to reflect the purpose of the SharePoint document library that you are creating. You could also replace this value with a variable if you wished to pass in dynamic content.
11. Update the “Title” property of the body to give it a relevant name that is meaningful to your organization. You could also replace this value with a variable if you would like to pass in dynamic content from your existing Flow.
12. Save the Power Automate, then click on Test at the top right corner.
13. Once the workflow has ran, go to the site to check that the document library has been created successfully.
Code: Create a SharePoint Document Library with Automate
“Description”: “This is some text”,
“Title”: “Client Documents”