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 Automate
Unanswered

Triggering Refresh

(0) ShareShare
ReportReport
Posted on by 148

@mahoneypat @mahoneypat2 @lbendlin

My end goal is to trigger a refresh of Power BI dataset upon modification of relevant files (data sources only).

 

I managed to build a flow which is currently doing the job.

 

But this site

         contains files (e.g. src1.xlsx, src2.xlsx, src3.xlsx, src4.xlsx)

                  beyond data sources (e.g. src1.xlsx, src3.xlsx) required for this particular power bi data set.

Hence, the following flow is triggering refresh upon modification happening to any files whatsoever. How can I make this flow trigger bound to only any modification to src1.xlsx or src3.xlsx

 

smpa01_0-1671215652397.png

Thank you in advance.

Categories:
I have the same question (0)
  • shaboo Profile Picture
    65 on at

    Hiya,

     

    If you are triggering on modification on folder it's not possible to limit on trigger step, however, if you can add a next step get the SharePoint list (folder list) then add a condition if the filename = "Trigger File Name" then add your steps to on positive route so if the file name is different it just ignores.

     

    Simply check the condition after trigger to make sure file name = your expected file if not ignore.

     

    Hope this will help on conceptually.

     

    Thanks

    Sandeep

  • smpa01 Profile Picture
    148 on at

    @Shaboo992thanks for looking into it.

     

    I am not actively pursuing PA unless I have a Power BI utility for it. Hence, I am not sure what are you suggesting here.

     

    Does the following match to what you are suggesting

    smpa01_0-1671223450308.png

     

    Also, your suggestion if you can add a next step get the SharePoint list (folder list) then add a condition if the filename = "Trigger File Name" will always return TRUE (I think), cause the file will always exist there. How do I make sure that the Dataset refresh is only triggered due to only modification of dependent excel only?

     

    One way to do that would be to put separate files in separate folder, Like src1.xlsx goes src1 Folder, src2.xlsx goes to src2 Folder and then create separate flow for each dependent folder.

    But I currently have all dependent and non-dependent excel within a single folder called SRC Data and I can't really move the non-dependent excel to other folders cause they have dependency to other BI applications.

  • Verified answer
    v-liwei-msft Profile Picture
    on at

    Hi @smpa01 

     

    You can restrict the flow to be triggered only when the file name src3.xlsx or src1.xlsx is modified by setting the TriggerCondition.

    @or(equals(triggerOutputs()?['body/{FilenameWithExtension}'],'src3.xlsx'),equals(triggerOutputs()?['body/{FilenameWithExtension}'],'src1.xlsx')) 

      

     

    vliweimsft_3-1671428619330.png
    vliweimsft_2-1671428619328.png

     

    Best Regards,

    Levi

  • smpa01 Profile Picture
    148 on at

    @v-liwei-msft  many thanks for this. I will check and let you know.

     

    BTW can you please tell me which language is this

    @or(equals(triggerOutputs()?['body/{FilenameWithExtension}'],'src3.xlsx'),equals(triggerOutputs()?['body/{FilenameWithExtension}'],'src1.xlsx')) 

     and where can I find more of this (documentation)

  • v-liwei-msft Profile Picture
    on at
  • smpa01 Profile Picture
    148 on at

    @v-liwei-msft  Thanks for this.

     

    I was wondering, if it is possible at all to assign the data source in a variable and utilize the variable inside the trigger condition, more like following. Is it possible?

    var sourceFirst = "src1.xlsx";
    var sourceSecond = "src3.xlsx";
    
    @or(equals(triggerOutputs()?['body/{FilenameWithExtension}'],sourceSecond),equals(triggerOutputs()?['body/{FilenameWithExtension}'],sourceFirst))

     

  • v-liwei-msft Profile Picture
    on at

    Hi @smpa01 

     

    This is not possible in triggerCondition.
    If you want to do this, please use the condition action.

     

    Best Regards,

    Levi

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard