<?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: Invoke-PowerBIRestMethod: $top parameter doesn't work when on Refresh history (GET /refreshes) in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Invoke-PowerBIRestMethod-top-parameter-doesn-t-work-when-on/m-p/2575456#M36661</link>
    <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;Is this an answer? You only posted a URL that I am already using.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jun 2022 14:08:22 GMT</pubDate>
    <dc:creator>charlieswing</dc:creator>
    <dc:date>2022-06-13T14:08:22Z</dc:date>
    <item>
      <title>Invoke-PowerBIRestMethod: $top parameter doesn't work when on Refresh history (GET /refreshes)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Invoke-PowerBIRestMethod-top-parameter-doesn-t-work-when-on/m-p/2572085#M36639</link>
      <description>&lt;P&gt;I am trying to use the following GET refreshes method (using&amp;nbsp;&lt;SPAN&gt;Invoke-PowerBIRestMethod Powershell cmdlet)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;to retrieve refresh history on a particular dataset. I'm wanting to use the {$top} parameter (as mentioned in this PBI documentation) to return the &lt;/SPAN&gt;&lt;U&gt;top 1&lt;/U&gt;&lt;SPAN&gt; refresh history however when I run this I get 40+ refresh instances.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am using this URL:&lt;BR /&gt;GET &lt;A href="https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/refreshes?$top=1" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/refreshes?$top=1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm thinking this is a bug unless I'm just missing something. Anyone else experiencing this? Again - the api returns refresh history but it does not limit the responses like its supposed to.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 16:54:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Invoke-PowerBIRestMethod-top-parameter-doesn-t-work-when-on/m-p/2572085#M36639</guid>
      <dc:creator>charlieswing</dc:creator>
      <dc:date>2022-06-10T16:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke-PowerBIRestMethod: $top parameter doesn't work when on Refresh history (GET /refreshes)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Invoke-PowerBIRestMethod-top-parameter-doesn-t-work-when-on/m-p/2572894#M36643</link>
      <description>&lt;P&gt;&lt;!-- StartFragment  --&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;Invoke-PowerBIRestMethod &lt;/SPAN&gt;&lt;SPAN&gt;-Url &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;A href="https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/refreshes?$top=1" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/refreshes?$top=1&lt;/A&gt;' &lt;/SPAN&gt;&lt;SPAN&gt;-Method &lt;/SPAN&gt;&lt;SPAN&gt;Get&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;!-- EndFragment  --&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2022 14:42:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Invoke-PowerBIRestMethod-top-parameter-doesn-t-work-when-on/m-p/2572894#M36643</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-11T14:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke-PowerBIRestMethod: $top parameter doesn't work when on Refresh history (GET /refreshes)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Invoke-PowerBIRestMethod-top-parameter-doesn-t-work-when-on/m-p/2575456#M36661</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;Is this an answer? You only posted a URL that I am already using.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 14:08:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Invoke-PowerBIRestMethod-top-parameter-doesn-t-work-when-on/m-p/2575456#M36661</guid>
      <dc:creator>charlieswing</dc:creator>
      <dc:date>2022-06-13T14:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke-PowerBIRestMethod: $top parameter doesn't work when on Refresh history (GET /refreshes)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Invoke-PowerBIRestMethod-top-parameter-doesn-t-work-when-on/m-p/2575552#M36663</link>
      <description>&lt;P&gt;Yes, I have tested it and there is no problem&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 14:55:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Invoke-PowerBIRestMethod-top-parameter-doesn-t-work-when-on/m-p/2575552#M36663</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-13T14:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke-PowerBIRestMethod: $top parameter doesn't work when on Refresh history (GET /refreshes)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Invoke-PowerBIRestMethod-top-parameter-doesn-t-work-when-on/m-p/2576393#M36678</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GSun_0-1655171755451.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/731666i57218418F7DA3732/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GSun_0-1655171755451.png" alt="GSun_0-1655171755451.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GSun_1-1655171871679.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/731667iBE71D79C99416852/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GSun_1-1655171871679.png" alt="GSun_1-1655171871679.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 01:58:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Invoke-PowerBIRestMethod-top-parameter-doesn-t-work-when-on/m-p/2576393#M36678</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-14T01:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke-PowerBIRestMethod: $top parameter doesn't work when on Refresh history (GET /refreshes)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Invoke-PowerBIRestMethod-top-parameter-doesn-t-work-when-on/m-p/2598012#M36926</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/380331"&gt;@charlieswing&lt;/a&gt;&amp;nbsp;, I found the solution; it is not a Power BI bug. The problem is when you add a $ in text using PowerShell it is interpreted as a variable; in other words, you have to escape the $ with `&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;$workspace_id = "your_workspace_id"
$dataset_id = "your_dataset_id"

$url_refresh_history = "https://api.powerbi.com/v1.0/myorg/groups/"+$workspace_id+"/datasets/"+$dataset_id+"/refreshes?`$top=2"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 14:27:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Invoke-PowerBIRestMethod-top-parameter-doesn-t-work-when-on/m-p/2598012#M36926</guid>
      <dc:creator>AEsquivel-AMPM</dc:creator>
      <dc:date>2022-06-23T14:27:22Z</dc:date>
    </item>
  </channel>
</rss>

