Power automate document location with sub folders in CRM

Aurimas 1 Reputation point
2021-10-08T12:25:49.047+00:00

Hello,
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. 138868-document-location-sc-crm-error.png138796-document-location-sc.png138885-document-location-view.png

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,767 questions
{count} votes