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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
KarthikAkkala
New Member

How to get refresh History of all the Datasets in all workspaces using power Automate.

I had a requirement of creting a power BI report with refresh Historey of all the datasets in all workspaces. is there a way to get it done. Kindly help me on this

1 ACCEPTED SOLUTION
andrewsommer
Super User
Super User

You can do this with the Power BI REST API and the Power Automate HTTP connector. 

You will need:

  • You have a Power BI Service Principal or user with Admin API access.
  • You can use Power Automate Premium (required for HTTP requests).
  • Your Power BI tenant has enabled Admin APIs in the tenant settings.

Get all workspaces:

GET https://api.powerbi.com/v1.0/myorg/admin/groups?$top=5000

 

Get datasets for each workspaces

GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets

 

Get refresh history for each dataset

GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/refreshes?$top=10

 

Please mark this post as a solution if it helps you. Appreciate Kudos.

View solution in original post

1 REPLY 1
andrewsommer
Super User
Super User

You can do this with the Power BI REST API and the Power Automate HTTP connector. 

You will need:

  • You have a Power BI Service Principal or user with Admin API access.
  • You can use Power Automate Premium (required for HTTP requests).
  • Your Power BI tenant has enabled Admin APIs in the tenant settings.

Get all workspaces:

GET https://api.powerbi.com/v1.0/myorg/admin/groups?$top=5000

 

Get datasets for each workspaces

GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets

 

Get refresh history for each dataset

GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/refreshes?$top=10

 

Please mark this post as a solution if it helps you. Appreciate Kudos.

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.

August 2025 community update carousel

Fabric Community Update - August 2025

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