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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

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!!

6 REPLIES 6
Josh641
Frequent Visitor

Agreed, this would be very helpful.

 

Does anyone know if it's possible to get the list of notification emails using the API? (or another method like sempy).

It would help a lot with auditing our environment, as we currently don't have a way of knowing (at scale) what is failing to refresh without notifying anyone.

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
Community Champion
Community Champion

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!:
DAX For Humans

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.