Skip to main content
Dynamics 365 general forum
Suggested answer

Power automate document location with sub folders in Dynamics 365

editSubscribe (0) ShareShare
Posted on by 15

I am building flow that's triggered by new opportunity creation in CRM creates folders in sharepoint and then creates document locations in CRM. From sharepoint side there are no issues but I encounter issues when creating document locations in CRM. Problem is that I use many sub folders(/Folder1/Folder2/Folder3/Folder4). Problem is that when trying to state the path (/Folder1/Folder2/Folder3/Folder4) in the relative URL field I get errors that I cant use "/". I googled out that for each sub folder I need new document location flow action pointing new folder location parent site to last ones unique ID. So I did it and now I have a problem that when I press document location button in CRM I always get different Folder in my folder path. I assume this is because I have crated several document locations in CRM.
Any ideas how to make it work? In CRM when clicked on document locations button I need to open the last folder in my path.

  • Suggested answer
    Nya Profile Picture
    Nya 29,043 on at
    RE: Power automate document location with sub folders in Dynamics 365


    There is an entity called Document Location in Dynamics.

    You can try to insert a step into the flow to create a Document Location first and then create a folder in SharePoint.

    Here is an article which you can refer to.

    Using Power Automate (Flow) to Create Sub-Folders in SharePoint (

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…


Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,066 Super User

Martin Dráb Profile Picture

Martin Dráb 222,585 Super User

nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans