Skip to main content

Notifications

Power Automate - Building Flows
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
  • How to get the parent library name for an automated flow "when a file is created or modified"
    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard