Forum Discussion

chriswragge's avatar
chriswragge
Helper I
7 years ago

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