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

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

how to get library name  from the trigger "For a selected file" or why itemURL changed and dont have anymore library name

(0) ShareShare
ReportReport
Posted on by

Hi everyone,

 

I want to make a  flow which could run on several libraries because is a complex flow and users ask frequently for modify/improve it.

My flow is the same on all libraries , only library name is different, so i don't want to duplicate it. 

How to get the library name from the trigger "For a selected file"?

first i think use the "itemurl "proprety   because it look like "SiteUrl/Libraryname/....".

But i don't understand why, the itemurl change after severals runs and don't have anymore library name but look like "site/_ layout/15/Doc.aspx?sourcedoc=%00000%7D&action=edit&uid=%xxxxx%7D&ListItemId=419&ListId=%yyyyyy%7D&odsp=1&env=prod". 

Do you know why the itemUrl has changed? or how to get library name ?

 

Thanks a lot for your hep& best regards

 

P.s : sorry if my english is not  good/ fluent.

 

Françoise

I have the same question (0)
  • Pstork1 Profile Picture
    68,271 Most Valuable Professional on at
    Re: how to get library name  from the trigger "For a selected file" or why itemURL changed and dont have anymore library name

    There is no way to make a flow that will run on multiple libraries.  You can make a flow on a single library and then make a copy and edit it to point at a different library.  But since triggers are library specific you'll need one copy for each library.

  • Couldbefunny Profile Picture
    on at
    Re: how to get library name  from the trigger "For a selected file" or why itemURL changed and dont have anymore library name

    In the meantime is there any way to solve the problem? Because I am facing the same problem?

  • Pstork1 Profile Picture
    68,271 Most Valuable Professional on at
    Re: how to get library name  from the trigger "For a selected file" or why itemURL changed and dont have anymore library name

    AS I said, you can't create a flow that will run on multiple libraries.  You can create a flow for a library, then make a copy by Exporting it or SaveAs and change the copy to work with a different library.  But every library will need its own copy of the flow with its own trigger.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 691 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 431 Moderator

#3
developerAJ Profile Picture

developerAJ 266

Last 30 days Overall leaderboard