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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Use API to set refresh failure notification email address

I want to send an update to a specific email address if a data set from anyone within my team fails their scheduled refresh. For now, only the report owner receives these messages, but this is inconvenient if that person is not in the office. Hence, I created a generic email that my whole team has access to.

However, I want to know if I can automatically update all data sets within a workspace to send refresh failure notification to this email address instead of the data set owner. I know I can enable/disable the email notifications, but I do not know if I can set these notifications to a specific email address.

 

Thanks!!

5 REPLIES 5
Anonymous
Not applicable

I was hoping to get this information as well.

 

I wrote a powershell script that captures the state of the datasets so that if they change at a later date, we can roll it back. However, Refresh Failure Notifications values are not returned from the Power BI API's GET "Scheduled Refresh" requests, and there's no token in the API for sending them via PATCH.

 

We need a way to retrieve and assign emails that appear for "These Contacts" programatically. Is the API documentation incomplete or does this functionality not available yet?

charlieswing
Microsoft Employee
Microsoft Employee

I would like to also chime in and say how helpful it would be to add a way to update/set contacts to be notified on refresh failures in a programmatic way. The Update Refresh Schedule api is very nice but the only thing it seems to leave out is the ability to add contacts. Why is this? https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/update-refresh-schedule

tpapp
New Member

7 month later I also can't find a way to set the notification email address programatically.

Greg_Deckler
Super User
Super User

Hmm, there are definitely options in and around dataset refreshes in the API but I don't see anything to change the email address being sent to:

https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/updaterefreshschedule#schedulenotifyopti...

 

You could take over ownership:

https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/takeoveringroup

 

You might also check out the new functionality in PowerAutomate: https://us.flow.microsoft.com/en-us/search/?q=power%20bi

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Hi, Is there any news on having the possibility to update the notification email address when a refresh fails?

we're deploying the datasets using a service principal, and it would be nice to set the notification addresses also with an API call, without using some other tools.

 

thanks

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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