Power Automate: create a folder in sharepoint

I will explain how to create a folder but also how to include a date in its name so to create it, I will use the “instant cloud flow” for my article:

power automate

NOTE: to automate it, I will use “automated cloud flow” or “schedule cloud flow”

Click on the “+” to add a new action:

power automate

In the “search” field, put “create folder” to select this option:

power automate

Fill the fields and for the “folder path” one, put manually the path:

power automate

NOTE: the path should be after the “root folder”. In my example, it is “documents” or “shared documents”

power automate

In my example:

  • /power automate/ -> the existed folder where I want to create my new folder inside
  • test -> the name of my new folder
power automate

Once done, click on “save” then on “test”:

power automate

This is the result:

power automate

Now if I want to include date, for instance the year, in the folder name, I will need to add those 2 actions:

power automate

To know how, read Power Automate: date and time.

Then in the “create new folder -> folder path”, I will add the output from my “initialize variable” (testyear) by using the “lightning” icon:

power automate power automate

This is the result:

power automate

Interesting Topics