I am working on a flow with below process:
(1) First, manually upload a sub-folder with files into a designated folder in SharePoint.
(2) Second, create an item in List, where one column the "hyperlink" to the sub-folder in SharePoint is added. (For simplicity it shows "TEST" as alternative text.)
(3) After creating the item in List, trigger the Approval. If rejected, automatically delete both the "item" and "sub-folder".
I was able to delete the item in the List, however I had difficulties trying to identify the sub-folder in SharePoint.
The only related dynamic content that I found is the below one, however it didn't work most of time.
Many methods regarding deleting a folder in SharePoint I could found on the internet didn't apply to my case.
For every upload it's assumed that it will be someone unknown, so I can't predict the name of the sub-folder.
Could someone please give me some idea about how to do it? Thanks a lot.