Forum Discussion

AvinashSomesvari's avatar
AvinashSomesvari
Copper Contributor
Aug 31, 2023

Creating a subfolder inside a folder of documents library in sharepoint site using power automate.

Above image is my General flow, I want to create a new sub folder folder when I new item is created in the list.

expression used : 

outputs('Get_items')?['body']?['value'][0]?['Rec'] for Rec variable
 

So I already have manually crated the folders for the rec part, I want additional folder to be created based on the input of the rec and title. when this flow runs, I am getting one subfolder as desired but I am getting additional folder in the root? can someone help, or give me better approach.

 

  • Vincent Noiset's avatar
    Vincent Noiset
    Copper Contributor
    Is your 'create folder' actions in an Apply to each loop ?

    Do you really need the 'get items' actions. Can you replace it with a 'get item' (and get the ID from previous step) ?

Resources