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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to get the parent ...
Power Automate
Unanswered

How to get the parent library name for an automated flow "when a file is created or modified"

(0) ShareShare
ReportReport
Posted on by
Hi,
 
I am creating a Flow that is going to be exported and imported and duplicated many times throughout our environment. I'm trying to make it as dynamic as possible so that the person doing the importing has as simple a job as possible, and doesn't have to change much within the Flow apart from the Trigger, where they can select the site and library the new flow will run against.
 
Within the flow there will be several references to the Site URL and library name, for composing emails, making http requests etc, so I was hoping that the trigger "When a file is created or modified (properties only)" would contain the required information, however, it seems the only thing it contains is the full path to the item.
 
Any idea how I might be able to get the Site URL and Library name from this trigger to allow me to store them in variables to be used throughout the flow. I understand I could manually set variables, hard code the values in and then tell the person who will be duplicating the flow to change the variables, but it would be nice to keep this as clean as possible for that person.
 
Thanks
Categories:
I have the same question (0)
  • Building with Why Profile Picture
    351 Moderator on at
    I would try a compose statement with:
    trigger('For_a_selected_file')['inputs']['parameters']
     
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard