Skip to main content

Notifications

Power Automate - Building Flows
Answered

Triger When a fileis created or modified (properties only) can it be dynamica for more many library

Posted on by 2
Hi everyOne, 

The trigger "When a file is created or modified (properties only)" property "
Library Name*"  since I have three document libraries is it possible to set the property "Library Name*"  dynamically (the flow is triggered whenever a file is uploaded even in another library or the whole SharePoint site in general) or I have to hard code the Library and eventualy create three different flows?
T
he rigger has a condition;
contains(triggerBody()?['{Path}'], '/testPath/'),     endsWith(triggerBody()?['{FilenameWithExtension}'], '.xlsx'),     not(equals(triggerBody()?['{FilenameWithExtension}'], 'testFile.xlsx'))

Best wishes
  • Verified answer
    TimBarnes07 Profile Picture
    TimBarnes07 15 on at
    Triger When a fileis created or modified (properties only) can it be dynamica for more many library
    Unfortunately, no actions can be created before the trigger action. Therefore there would be no way to set the library in question before the flow triggers. Also, the dynamic content pulled from the trigger is determined by the library specified. If this was dynamic, no dynamic content would show as the libraries may have different columns etc.
     
    The trigger conditions cannot be used either as the flow will only run based off the one library you specify. I'm afraid here the only way is to use 3 flows. 
     
    It would be a good idea to suggest to Microsoft. 

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,591

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,090

Leaderboard