
Hello All,
I have a use case where we are building a custom form through PowerApps in a document library. Now, we are trying to build an approval flow over that document library. The user will enter all the details along with target destination link. Now the link can be of the following type.
Target Destination1 : https://shivyogi2.sharepoint.com/sites/GoogleTest/DMSPOC/Shared%20Documents/Forms/AllItems.aspx ( Directly in the Shared Documents)
Target Destination2 :https://shivyogi2.sharepoint.com/sites/GoogleTest/DMSPOC/Shared%20Documents/Forms/AllItems.aspx?id=%2Fsites%2FGoogleTest%2FDMSPOC%2FShared%20Documents%2FTest&viewid=03365946%2Dc5ab%2D4dbc%2Da1f5%2Dd15acf98d53f ( in a folder inside shared documents)
Target Destination3 :https://shivyogi2.sharepoint.com/sites/GoogleTest/DMSPOC/Shared%20Documents/Forms/AllItems.aspx?id=%2Fsites%2FGoogleTest%2FDMSPOC%2FShared%20Documents%2FTest%2FTest1&viewid=03365946%2Dc5ab%2D4dbc%2Da1f5%2Dd15acf98d53f ( Test1 Folder under Test Folder under Document Library )
Now, we need to create a file in the target destination and for that we need to use create file and for that we need Site URL and folder name which we need to retrieve from above target destination that the user has put in the form. How can we retrieve it from the above URLs. We need it to be dynamic as it can be a case the destination library can no folder structure or even single folder structure or can have multiple folder structure as given in above links.
Any help would be appreciated. Please help us out!!
Thanks in advance.