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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Capture Latest Power BI Dataset Refresh via API

Hi,

 

I need to capture the latest Power BI dataset refresh date and time which is refreshed via API through ADF. Please let me know how to do it

 

@Daniel29195 @amitchandak @lbendlin @Idrissshatila @Ritaf1983 @Ahmedx @aj1973 @PijushRoy 

 

Regards

Vivek N

1 ACCEPTED SOLUTION
ibarrau
Super User
Super User

Hi. You can use the Power Bi Rest API for achieving this. You can get the refresh history of specific dataset, make it a dataframe and filter the response by "Via Api" and date.

This is the request you could check: https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/get-refresh-history-in-group

You can also read about libraries like simplepbi for python to make it easier for connecting and getting th result.

I hope that helps,

P/D you can find the category "via api" but you can't know if its from ADF or any other tool running the request.


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

Happy to help!

LaDataWeb Blog

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Thank You for the guidance i will check on these topics 

NandanHegde
Super User
Super User

Hey,

Couple of aspects:

1) In case if you want to capture the log as a part of end procees within the ADf itself,

 

https://datasharkx.wordpress.com/2022/11/05/refresh-power-bi-dataflow-dataset-from-azure-data-factor...

 

In this blog, the last web activity within until loop would provide you the latest refresh details like its status , time etc.

 

2) In case if you want to capture it externally, meaning ADF and this job in silos, you can work as stated by @ibarrau either via Python /Powershell etc by trigerring the REST API




----------------------------------------------------------------------------------------------
Nandan Hegde (MSFT Data MVP)
LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66
GitHUB Profile : https://github.com/NandanHegde15
Twitter Profile : @nandan_hegde15
MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942
Topmate : https://topmate.io/nandan_hegde
Blog :https://datasharkx.wordpress.com
ibarrau
Super User
Super User

Hi. You can use the Power Bi Rest API for achieving this. You can get the refresh history of specific dataset, make it a dataframe and filter the response by "Via Api" and date.

This is the request you could check: https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/get-refresh-history-in-group

You can also read about libraries like simplepbi for python to make it easier for connecting and getting th result.

I hope that helps,

P/D you can find the category "via api" but you can't know if its from ADF or any other tool running the request.


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

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Kudoed Authors