I would like to add functionality to my script to add a default "Archive" folder to Document library. It would be good to add in the upper part of the screen an explanation what files should be there.

Currently the structure looks like this:

General files (Document library) in the middle the folder "Archive".

Here my script, which creates document library:

        "verb": "createSPList",
        "listName": "General files",
        "templateType": 101
        "verb": "addNavLink",
        "url": "/General%20files/Forms/AllItems.aspx",
        "displayName": "Client documents",
        "isWebRelative": true

I don't see any parameter here that specifies creating an empty folder in document library.

Create a new SharePoint list

1 Answer 1


Creating folders inside document library using Site design script is not possible.

However, you can trigger a flow using site design script which will create default folders inside document library.

More information on triggering flow at: Trigger a flow

Similar issue on GitHub: Is there JSON code to create Folders in a document library?

Additional Reference: MS Flow – Create new folder action

  • Unfortunately this will work for one particular site.... If we have many sites and they have different url's then creating folders will not work :/
    – Jelon3k
    Commented Mar 29, 2021 at 9:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.