Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

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

7 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    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#schedulenotifyoption

     

    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

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      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

  • Anonymous's avatar
    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?

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

  • Josh641's avatar
    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.

  • Has been quite some time. I still wonder, why this is not there? We would like to set notification email addresses for datasets via API.