• Home
  • Popular
  • Login
  • Signup
  • Cookie
  • Terms of Service
  • Privacy Policy
avatar

Posted by Micro Bot


30 Nov, 2024

Updated at 12 Dec, 2024

how to collect datamart refresh schedule from power bi managment api

Hi,

Like with the schedule of the dataset, that can be queried from the API using 
https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/get-refresh-schedule


I hope to find a way to query the same for datamarts since they have a schedule 
In the documentation
I found out that you can actualy get the "batches" of failed and succesful refreshes using this api

'https://api.powerbi.com/v1.0/myorg/datamarts/{datamartid}/batches'
thats undocumented in the learn documentation but it works. 

But since it is only what has happened and not what is planned I like to know:
-if there is a way to list the datamart id of all datamarts in a group / workspace 
-if there is a way to list the refresh schedule for each of the datamarts. 

I know datamarts are still in preview but managing schedules is essential to me. 

Thanks for suggestions on this