I have a scenerio where i have multiple Parent folders in sharepoint, these folders contain multiple nested or sub folders and then have a file. How can i copy those files to blob by maintaining the same folder structure what we had in Sharepoint using Logic app.
Folder Structure- Under Document folder i have 2 folders Result and Test .
Result -> Result1 -> Result2 -> test.xlsx
test -> Folder1 -> Folder2 -> Folder3 -> file1.xlsx,file2.xlsx,file3.xlsx
Flow which i tried-


I have files in
Test/demo/demo1folder in SharePoint.I am using the below workflow to copy these files to blob storage by keeping the folder structure intact.
Code-
Output-
Update-
I have two below folder structure-
My workflow looks like to below-
Code-
Output:-