web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to get library nam...
Power Automate
Unanswered

How to get library name or split library name from folder path URGENT!!!

(0) ShareShare
ReportReport
Posted on by 434

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

 

 

Categories:
I have the same question (0)
  • powercorner Profile Picture
    477 on at

    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") :

    powercorner_0-1634983069537.png

    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:

    powercorner_1-1634983251845.png


    I hope you understand my solution. If not please ask for help 🙂

     

    With regards
    Kevin





Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard