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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
pvuppala
Helper V
Helper V

Dataflow Refresh History API

Hello Gurus,

I'm trying to see if there's any APIs to extract the data we get using .csv download option within refresh history either via API or some other call.  So far everything that I've seen doesn't show "rowsProcessed" which is what we're after.

 

Please let me know

 

Thanks!

-Pawan

6 REPLIES 6
hackcrr
Memorable Member
Memorable Member

Hi, @pvuppala 

Power BI does provide an API to access and extract the refresh history of a dataset, but the .csv download functionality directly through the API may not be directly supported. However, you can accomplish this indirectly by following the steps below:

First, you need to use the Power BI REST API to get the refresh history for a dataset. This usually involves several steps such as getting a list of workspaces, getting a list of datasets, and then for each dataset getting its refresh history.

https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/get-refresh-history

 

hackcrr_0-1715416133733.png

hackcrr_1-1715416144462.png

hackcrr_2-1715416174155.png

 

The response from the API will contain the data you requested, which is the refresh history of the dataset. This data is usually returned in JSON format. Once you have obtained the refresh history in JSON format, you can convert it to CSV format using a variety of methods. This can be done server-side (for example, using Python's pandas library or similar) or client-side (for example, using a JavaScript library in the browser).
If you are working with this data in a web application, you can provide the user with a download link or button that, when clicked, triggers an HTTP request to generate the CSV file and send it to the user's browser for download.

Please note that providing the .csv download option directly through the Power BI interface or API may not be a native feature of Power BI. Therefore, you may need to write some custom code or use a third-party library to implement this feature.

 

 

Best Regards,

hackcrr

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

GilbertQ
Super User
Super User

Hi @pvuppala 

 

Do you mean you are looking for a way to extract the dataflow refresh history via an API call?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Yes Gilbert, there's a "Get Dataflow Transactions" API but, that doesn't give any details.  More ideas welcome, please keep 'em coming..

 

Thank you all.

Yes, my customer would like to track rowcounts on each scheduled refresh.  I see that field as part of refresh history available as .csv download but, we're trying to get it programatically.  Please let me know if anyone had to deal with it.

Hi @pvuppala 

 

You would need to query the dataflow and possibly use some DAX to extract the rowcounts?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

No, we're talking about Refresh History and how many records were processed each run.  All that info is available when you click on refresh history it lets you download .csv for each run.  We just want to be able to programatically get that info for all runs.  I opened a microsoft case, they said there isn't an API for this yet.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.