Power Automate by using SharePoint Library

This article gives a brief idea about how to create folders and subfolders in the SharePoint document library using power automate.

Step 1

Go to https://flow.microsoft.com/

Click on Automated–from blank.

Power Automate

Select when item is created as shown in the below screenshot

 

Click on next, find and select the “Initialize variables” action.

Expand the Initialize variable box and assign the variable as follows

Click on Next Step and find and select the “Apply to Each” action

Inside apply for each action box, click add action and find “Create new folder”, choose variable SubFolderArray as an input of Apply each action

Configure Create new folder action as follows,

a. Choose site Address
b. Choose a Library name for where need to create a folder
c. Folder path represents the folder structure /ID is a root folder and /current item refers to the value from the array(for subfolders)

Click on Save Flow. To test the flow, insert a record in the list that you triggered.

Expected output

Conclusion:-

That’s all — we successfully automated the folder name”36″ and subfolder creation process in SharePoint document library using power automate.

For any Help or Queries Contact us on info@crmonce.com or +919014146800.

We have started a new online retail store    Please Visit.