<?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 Call any Power BI REST API with PowerShell issue in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Call-any-Power-BI-REST-API-with-PowerShell-issue/m-p/2468237#M35617</link>
    <description>&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to refresh the PoweBI dataset from PowerBI rest API using Powershell getting below error can you please help me how to fix the issue&lt;/P&gt;&lt;P&gt;using command&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-PowerBIRestMethod -Url "datasets/19b9e00-e8f2-4f81-baae-e2ee907af256/refreshes" -Method Post&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;getting error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-PowerBIRestMethod: One or more errors occurred. (Response status code does not indicate success: 404 (Not Found).)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Note: i am running this command on Mac&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Apr 2022 07:45:41 GMT</pubDate>
    <dc:creator>kanth999</dc:creator>
    <dc:date>2022-04-21T07:45:41Z</dc:date>
    <item>
      <title>Call any Power BI REST API with PowerShell issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Call-any-Power-BI-REST-API-with-PowerShell-issue/m-p/2468237#M35617</link>
      <description>&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to refresh the PoweBI dataset from PowerBI rest API using Powershell getting below error can you please help me how to fix the issue&lt;/P&gt;&lt;P&gt;using command&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-PowerBIRestMethod -Url "datasets/19b9e00-e8f2-4f81-baae-e2ee907af256/refreshes" -Method Post&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;getting error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-PowerBIRestMethod: One or more errors occurred. (Response status code does not indicate success: 404 (Not Found).)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Note: i am running this command on Mac&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 07:45:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Call-any-Power-BI-REST-API-with-PowerShell-issue/m-p/2468237#M35617</guid>
      <dc:creator>kanth999</dc:creator>
      <dc:date>2022-04-21T07:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Call any Power BI REST API with PowerShell issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Call-any-Power-BI-REST-API-with-PowerShell-issue/m-p/2474040#M35681</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/381201"&gt;@kanth999&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I think you may miss the required part in the request so these requests do not work.&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;It works well when I test the script with all required parameters: (since the API has no response so I check that in my workspace and you can find the dataset has been updated correctly)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/refresh-dataset#request-body" target="_blank" rel="noopener"&gt;Datasets - Refresh Dataset - REST API (Power BI Power BI REST APIs) | Microsoft Docs&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/704260i25E613A2E3A081FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/704264i62001630E0561E5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Test script:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$Body ="{'notifyOption'='NoNotification'}"
Invoke-PowerBIRestMethod -Url 'datasets/62b66b9e-a296-439f-8fb2-95b526196c13/refreshes' -Method Post -Body $Body&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&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>Mon, 25 Apr 2022 07:02:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Call-any-Power-BI-REST-API-with-PowerShell-issue/m-p/2474040#M35681</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-25T07:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Call any Power BI REST API with PowerShell issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Call-any-Power-BI-REST-API-with-PowerShell-issue/m-p/2474063#M35683</link>
      <description>&lt;P&gt;Can you please let me know, is there are any documents that will run the PowerShell commandlet in Mac os?, Mac OS is suitable to run the PowerShell commands ?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 07:09:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Call-any-Power-BI-REST-API-with-PowerShell-issue/m-p/2474063#M35683</guid>
      <dc:creator>kanth999</dc:creator>
      <dc:date>2022-04-25T07:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Call any Power BI REST API with PowerShell issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Call-any-Power-BI-REST-API-with-PowerShell-issue/m-p/2479556#M35732</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/381201"&gt;@kanth999&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;If the modules&amp;nbsp;do&amp;nbsp;not require any additional package that your system does not support, you can also run these on the mac os system.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I check the document and found it seems not to include any additional software requirements so I think these scripts may also work on your device. (prerequisites are for PowerShell itself: windows system PowerShell 3.0 and .net 4.7.1, other types of system PowerShell core support and PowerShell core v6)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://docs.microsoft.com/en-us/powershell/power-bi/overview?view=powerbi-ps" target="_blank"&gt;Power BI Cmdlets reference | Microsoft Docs&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, 27 Apr 2022 06:44:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Call-any-Power-BI-REST-API-with-PowerShell-issue/m-p/2479556#M35732</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-27T06:44:14Z</dc:date>
    </item>
  </channel>
</rss>

