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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Aalbregt
Regular Visitor

Power BI Rest API Refresh dataset by Service Principal and NotifyOption

Hello,

 

We are using the Power BI REST Api to perform a Dataset Refresh. The refresh is started and we receive a 202 (Accepted) reply.

The request is performed by a Service Principal.

 

The refresh itselves is processed as expected.

 

We would also like to use the notifyOption. Either the MailOnCompletion or MailOnFailure.

But we can't get this to work. We specify notifyoption in the body. The Request is accepted, but an email is never send. We have configured other accounts at 'Send refresh failure notifications to' on the power bi service for the dataset, because the service principal is the dataset owner at the time the refresh is called.

 

Is this a supported feature when using a service principal?

We would like to receive the notify at the accounts specified at the 'Send refresh failure notifivations to'-addresses.

 

With kind regards,

Erik

1 REPLY 1
v-rzhou-msft
Community Support
Community Support

Hi @Aalbregt ,

 

I have a test to get token by Account and Password. NotifyOption works well, I am the group owner and I will receive the completion mail.

RicoZhou_0-1649065059643.png

It seems that when you use a service principal to request the refresh no communication will be sent out at all. 

Here is a post with similar problem like yours.

Power BI seems that not support to send notify mail when we use service principal to authentication.

We suggest you to open a ticket here for help if you are a pro user: Support ticket

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.