cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Joppel
Helper I
Helper I

create multiple folders in a Sharepoint library based on selected values in a combobox.

I would like to create multiple folders in a Sharepoint library based on selected values in a combobox.

I am trying to do this through powerautomate, but keep getting errors.

 

Below example, I want to create a folder called Test, and in this folder 3 folders (choice 1; choice 2 & choice 3)

Can anyone point me in how to fix this?

 

appscherm.png

 

PA scherm.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

This would work:

 

HenryARPhillips_0-1614719846776.pngHenryARPhillips_1-1614719857221.pngHenryARPhillips_2-1614719866113.png

 

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

This would work:

 

HenryARPhillips_0-1614719846776.pngHenryARPhillips_1-1614719857221.pngHenryARPhillips_2-1614719866113.png

 

Joppel
Helper I
Helper I

Thanks for the help!

Unfortunately I have no experience with parse Json, may I ask how to generate the schema?

Anonymous
Not applicable

That is the beauty,  you don't need to know. Just let the flow run once with a schema of {} and then go back in to view that run.  Copy the output of the parse JSON. Go back in to edit the flow,  select from sample,  paste in,  save up and you now have your JSON action complete with relevant schema. 

 

Cannot rate compose and parse JSON enough for helping with Flows and troubleshooting Flows.

When I follow the explanation, I get the error below?

{
    "errors": [
        {
            "message": "Invalid type. Expected Object but got Array.",
            "lineNumber": 0,
            "linePosition": 0,
            "path": "",
            "schemaId": "#",
            "errorType": "type",
            "childErrors": []
        }
    ]
}
 

The error was that I was copying the raw output.
It works now, I am happy and would like to thank you for the help!

sunil_stryker
Helper I
Helper I

@Anonymous , thanks for your suggestion, I have just followed your suggestion steps, and its working fine, 

but my requirement is a bit change seeing your kind support.

 

Requirement:

In a list, I have 3 columns, Project Name, Part Number & Supplier Name, 

When a new list is created, it should create a Main folder with Project Name, and Subfolder must create with Part Number_Supplier Name then it should mini subfolder as shown in attachments.

 

Example, 

Main Folder - Project 1

            SubProject - Partnumber_Suppluer Name

                    Mini subFolder should create, 25 folders, Folder 1, Folder 2, Folder 3.....etc.

 

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,938)