
Announcements
Hi All,
I am using below actions in flow:
Get Files
Get Content
Create File
Create folder
I am using FolderPath output of get files in Create File/Folder action.
but folderpath contains Library name, I want to remove library name from folder path
Site 1: Shared Documents1 -> Folders
Site 2: Shared Documents2
Expected results: Shared Documents2 -> Folders
I am getting results : Shared Documents2 -> Shared Documents1 -> Folders
How i can take off Shared Documents1 from results.
Folder have multilevel structure and some folder has files as well.
Thanks
Hello @vish3027 ,
I understand your problem. You could use the split function in order to filter out the library name.
On the following screenshot you can see the flow I was building and one run to see the results. I think this should help you to solve your problem (for understanding - "Auf alle anwenden" means "For each") :
And this is the magic that happens inbetween:
1. I define two variables "Temporary Path" and "Array Counter"
I split the folder path by "Split(path,'/')
And then I am iterating over the resulting array, leaving the first one out (which is a library name)
and then I am building the Temporary string:
I hope you understand my solution. If not please ask for help 🙂
With regards
Kevin