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
sohvi
Regular Visitor

Get refresh history with API

Hi,

 

I want to make  a report about my other report's refresh history. It will get the data with API and then I will have PowerApps dataflow which will load the data to the report. I have no prior experience with APIs so I need some help.

 

I'm trying to get the refresh history from workspaces with API but I have issue with the API accesses. I have been using following Youtube video as reference how to do this but I can't give all accesses to the API because of my company's policy.

Does someone know which accesses are needed to get the referesh data with API to a report?

Dataset Refresh Report with Power BI Rest API and Power Automate | Track all your refresh Status 

1 REPLY 1
rajendraongole1
Super User
Super User

Hi @sohvi - using your Azure AD App has the required permissions (Dataset.Read.All or Dataset.ReadWrite.All).
Authenticate using OAuth2 (either user-delegated or service principal authentication).
Use the Power BI REST API to fetch the refresh history.
Optionally, use Power Automate to automate the data flow and store the results for reporting in Power BI or PowerApps.

 

Since as you're new to APIs, here’s a simplified flow for authenticating and accessing data:

Step 1: Register an Azure AD App: Go to the Azure portal, register an app, and note down the App ID and Client Secret.
Step 2: Assign Permissions: Under API permissions, add Dataset.Read.All or Dataset.ReadWrite.All and grant admin consent for these permissions.
Step 3: Obtain an Access Token: Use the OAuth2 flow to get an access token by passing the App ID, Client Secret, and the appropriate API endpoint.
Step 4: Make API Calls: Use the obtained access token to make the API calls to retrieve the refresh history.

 

Hope this steps helps.





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

Proud to be a Super User!





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.