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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jaryszek
Post Prodigy
Post Prodigy

Check dataset refresh status REST API

Hi Guys,

 

i have to check before exporting to PDF if dataset report was refreshed sucessfully.

i have found this method:

 

 

GET https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/refreshes/{refreshId}

 


but from where i have to know RefreshId (i want to take last refresh status) in order to start exporting report connected to the dataset using API and powershell/java?

So steps:
1) refresh dataset connected to report
2) Refresh report AFTER dataset was completely refreshed

Best,
Jacek

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jaryszek

 

You can get the refresh id directly through the relevant API ,it will return refresh id (request id), the relevant statements refer to this document:

Datasets - Get Refresh History In Group - REST API (Power BI Power BI REST APIs) | Microsoft Docs

 

vmengzhumsft_0-1659520033595.png

 

Best regards, 

Community Support Team Selina zhu 

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

View solution in original post

6 REPLIES 6
Mohit_Chhabra
Regular Visitor

Check below link to see power bi refresh every second using API. 

https://thetrendsettershub.blogspot.com/2023/08/power-bi-tips-api-refresh.html

Anonymous
Not applicable

Hi @jaryszek

 

You can get the refresh id directly through the relevant API ,it will return refresh id (request id), the relevant statements refer to this document:

Datasets - Get Refresh History In Group - REST API (Power BI Power BI REST APIs) | Microsoft Docs

 

vmengzhumsft_0-1659520033595.png

 

Best regards, 

Community Support Team Selina zhu 

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

@Anonymous thank you.

It will take last refresh ? How to make this working in the loop in powershell?

Best,
Jacek

Hi @jaryszek ,

 

It will take all record of your refresh history.

selinaz_0-1660119728724.png

What do you mean by loops?

 

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

Best regards.

@selinaz  thank you i figured this out. The top is taking the last refreshed one and this is working fine 🙂

jaryszek
Post Prodigy
Post Prodigy

Hi,

Anybody can help?
Best,
Jacek

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.