<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Rest API Datasets - Update Refresh Schedule In Group - Error in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Rest-API-Datasets-Update-Refresh-Schedule-In-Group-Error/m-p/2340890#M34423</link>
    <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/321482"&gt;@petrVolfMBI&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;AFAIK, some of the features are not released to the rest APIs(notice: they may be due to security or performance reasons) so that you can only use it on the power bi service side.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;For this scenario, I'd like to suggest you submit ideas for these requirements.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://ideas.powerbi.com/ideas/" target="_blank"&gt;Microsoft Power BI ideas&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Feb 2022 02:20:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-02-16T02:20:34Z</dc:date>
    <item>
      <title>Rest API Datasets - Update Refresh Schedule In Group - Error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Rest-API-Datasets-Update-Refresh-Schedule-In-Group-Error/m-p/2315485#M34176</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;currently, we have a problem setting schedule refresh using&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/update-refresh-schedule-in-group" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;API&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;with enabled notifications (notifyOption = MailOnFailure) using Service principal (We use Service principal to init everything in our PowerBi workspace).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After we set up the dataset we want to define a Refresh Schedule for the dataset using API.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When we call Rest API with this body (Service Principal is dataset owner):&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "value": 
        {
            ...
            "notifyOption": "MailOnFailure"
        }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An error is returned:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "error":{
        "code":"InvalidRequest",
        "message":"Invalid NotifyOption value 'MailOnFailure' for app only owner requests"
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We know how to fix this problem by changing "notifyOption": "NoNotification". But notification are then disabled and we have to "manualy" check if any refresh error occured (we have a lot of workspaces with datasets). So this solution is not ideal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to configure mailOnFailure with Service Principal? Or add additional email recipients. Current Rest API does not support adding other recipients but in GUI it is possible to add other recipients. Or it does but it is not in Rest API doc?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 14:18:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Rest-API-Datasets-Update-Refresh-Schedule-In-Group-Error/m-p/2315485#M34176</guid>
      <dc:creator>petrVolfMBI</dc:creator>
      <dc:date>2022-02-02T14:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API Datasets - Update Refresh Schedule In Group - Error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Rest-API-Datasets-Update-Refresh-Schedule-In-Group-Error/m-p/2315506#M34179</link>
      <description>&lt;P&gt;Your question showed me the answer to &lt;EM&gt;my&lt;/EM&gt; problem, for which I thank you.&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Developer/Failing-Datasets-UpdateRefreshScheduleInGroupAsync-in-NET/m-p/2311320/thread-id/34150#M34178" target="_blank" rel="noopener"&gt;Solved: Failing: Datasets.UpdateRefreshScheduleInGroupAsyn... - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may need to write your own daemon to check refresh results. You can write an Azure Function that calls restApiClient.Datasets.GetRefreshHistoryXXX().&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 14:40:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Rest-API-Datasets-Update-Refresh-Schedule-In-Group-Error/m-p/2315506#M34179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-02T14:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API Datasets - Update Refresh Schedule In Group - Error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Rest-API-Datasets-Update-Refresh-Schedule-In-Group-Error/m-p/2315781#M34182</link>
      <description>&lt;P&gt;I am glad that my problem helped you :-).&lt;/P&gt;&lt;P&gt;Thanks, I know how to solve my problem using the daemon (Probably the only solution for this problem for now &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; ). I hope for a better solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;But I don't want to solve this that way. We have lots of datasets. And I see some problems like timing, schedules run at different times, refreshes take different amounts of time, and so on. Why should we waste other resources to check if something fails, when the functionality already exists. Power BI has the functionality to handle refresh errors and send an email about the error (But only for users). So, I would like to use the existing functionality for Service Principal.&lt;BR /&gt;Or add a notification list to Rest API. In GUI - API does not support that - it is possible to send failure messages to multiple users, but this is possible only for users.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 16:44:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Rest-API-Datasets-Update-Refresh-Schedule-In-Group-Error/m-p/2315781#M34182</guid>
      <dc:creator>petrVolfMBI</dc:creator>
      <dc:date>2022-02-02T16:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API Datasets - Update Refresh Schedule In Group - Error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Rest-API-Datasets-Update-Refresh-Schedule-In-Group-Error/m-p/2340890#M34423</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/321482"&gt;@petrVolfMBI&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;AFAIK, some of the features are not released to the rest APIs(notice: they may be due to security or performance reasons) so that you can only use it on the power bi service side.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;For this scenario, I'd like to suggest you submit ideas for these requirements.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://ideas.powerbi.com/ideas/" target="_blank"&gt;Microsoft Power BI ideas&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 02:20:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Rest-API-Datasets-Update-Refresh-Schedule-In-Group-Error/m-p/2340890#M34423</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-16T02:20:34Z</dc:date>
    </item>
  </channel>
</rss>

