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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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

 


@ 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!:
The Definitive Guide to Power Query (M)

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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