Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
chriswragge
Helper I
Helper I

Refresh local query using MS Flow

Hi there, 

 

I am looking to automatically refresh a local query based on a tigger in MS Flow, but am having difficulty.

 

Here's my current workflow

  1. Data is emailed to me weekly as an attachment
  2. As soon as the Email hits my inbox, a MS Flow rule saves this attachment to OneDrive (good so far)
  3. I then open PowerBI and manually refresh my query using that newly modified file in OneDrive (which is synced to my desktop) as a data source, plus one other file needed in the transformation
    • The query pings an API and returns a list of JSON values that I perform further transformation on
    • A bit of R script at the end of my query exports the transformed data as a new file out to OneDrive
  4. Microsoft Flow detects the exported file from PowerBI in OneDrive, and the FTPs the fully transformed dataset to a server

In essence, what I am trying to remove my manual intervention from Step 3. 

 

My Issues

  1. How do I get Step 3 triggered via Flow?
  2. I require a file to be exported out of PowerBI when my query ends ready for FTP-ing.

 

Where I've got to so far

 

Can anyone lend a hand?

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

I think that one issue with your approach is going to be that there are not a lot of options for automating Power BI Desktop via code just yet versus what people have done in the past with things like Excel, Word, etc. You can check out this here: https://community.powerbi.com/t5/Desktop/Automation-for-Power-BI-Desktop/m-p/334108#M149441 I do not see much here other than streaming data sets as far as a destination: https://flow.microsoft.com/en-us/search/?q=power+bi


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thanks @Greg_Deckler. I may explore the local code side of things a little further, but good to know I am not missing something obvious. Cheers!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.