<?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 Using REST API for data refresh in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Using-REST-API-for-data-refresh/m-p/385198#M11438</link>
    <description>&lt;P&gt;Facing some issues while trying to refresh published datasets on different groups using PowerBI API&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is what I have done so far:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Created a client Id for my application on&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://dev.powerbi.com/apps" target="_blank"&gt;https://dev.powerbi.com/apps&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2. Get call using&amp;nbsp;&lt;SPAN&gt;GET &lt;A href="https://api.powerbi.com/v1.0/myorg/groups" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/groups&lt;/A&gt;&lt;/SPAN&gt; to get all my listed workspaces along with their group Ids.&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;Passing each group Id at a time to get dataset Ids &amp;amp; names associated with each of the group Ids using&amp;nbsp;&lt;SPAN&gt;GET &lt;A href="https://api.powerbi.com/v1.0/myorg/groups/{group_id}/datasets" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/groups/{group_id}/datasets&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;4. Creating a table object which would store the group Id &amp;amp; its associated dataset id &amp;amp; using this object to pass one item at a time to refresh dataset api i.e.&amp;nbsp;&lt;SPAN&gt;POST &lt;A href="https://api.powerbi.com/v1.0/myorg/groups/{group_id}/datasets/{dataset_id}/refreshes" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/groups/{group_id}/datasets/{dataset_id}/refreshes&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issues:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. The refresh POST call does work fine but when I see online on the powerBI portal then the datasets which do not have 'Schedule Refresh = ON' fail to refresh the dataset.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Also the POST call works fine on datasets which do not have a gateway defined, but when opening the powerbi portal, it shows that the refresh has failed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Clarification needed:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; How is the architecture of these REST API's ? Do they invoke the powerBI gateway service &amp;amp; then refresh the datasets ?&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Is there a way where we can by pass the issue # 1 mentioned above ?&lt;/P&gt;</description>
    <pubDate>Wed, 28 Mar 2018 04:05:47 GMT</pubDate>
    <dc:creator>nitinsapru</dc:creator>
    <dc:date>2018-03-28T04:05:47Z</dc:date>
    <item>
      <title>Using REST API for data refresh</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-REST-API-for-data-refresh/m-p/385198#M11438</link>
      <description>&lt;P&gt;Facing some issues while trying to refresh published datasets on different groups using PowerBI API&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is what I have done so far:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Created a client Id for my application on&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://dev.powerbi.com/apps" target="_blank"&gt;https://dev.powerbi.com/apps&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2. Get call using&amp;nbsp;&lt;SPAN&gt;GET &lt;A href="https://api.powerbi.com/v1.0/myorg/groups" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/groups&lt;/A&gt;&lt;/SPAN&gt; to get all my listed workspaces along with their group Ids.&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;Passing each group Id at a time to get dataset Ids &amp;amp; names associated with each of the group Ids using&amp;nbsp;&lt;SPAN&gt;GET &lt;A href="https://api.powerbi.com/v1.0/myorg/groups/{group_id}/datasets" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/groups/{group_id}/datasets&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;4. Creating a table object which would store the group Id &amp;amp; its associated dataset id &amp;amp; using this object to pass one item at a time to refresh dataset api i.e.&amp;nbsp;&lt;SPAN&gt;POST &lt;A href="https://api.powerbi.com/v1.0/myorg/groups/{group_id}/datasets/{dataset_id}/refreshes" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/groups/{group_id}/datasets/{dataset_id}/refreshes&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issues:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. The refresh POST call does work fine but when I see online on the powerBI portal then the datasets which do not have 'Schedule Refresh = ON' fail to refresh the dataset.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Also the POST call works fine on datasets which do not have a gateway defined, but when opening the powerbi portal, it shows that the refresh has failed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Clarification needed:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; How is the architecture of these REST API's ? Do they invoke the powerBI gateway service &amp;amp; then refresh the datasets ?&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Is there a way where we can by pass the issue # 1 mentioned above ?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 04:05:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-REST-API-for-data-refresh/m-p/385198#M11438</guid>
      <dc:creator>nitinsapru</dc:creator>
      <dc:date>2018-03-28T04:05:47Z</dc:date>
    </item>
  </channel>
</rss>

