<?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 Refresh Tables of Dataset Using Rest API in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Refresh-Tables-of-Dataset-Using-Rest-API/m-p/3374969#M43829</link>
    <description>&lt;P&gt;Hi guys, i need a help.&lt;/P&gt;&lt;P&gt;It's possible updated only two tables of a dateset using Power BI API?&lt;/P&gt;&lt;P&gt;Exemple:&lt;BR /&gt;I have a dataset with 4 tables: fSales, fClient, fOrder and fCalls. I wanna updated fCalls and fOrder, the another tables i not wanna updated.&lt;/P&gt;&lt;P&gt;I'm reading the documentation but during my test's i don't have sucessed.&lt;/P&gt;&lt;P&gt;For this exemple the body object used in requested is:&lt;BR /&gt;dataset_objects =&lt;BR /&gt;{&lt;BR /&gt;"refresh": {&lt;BR /&gt;"type": "Automatic",&lt;BR /&gt;"commitMode": "PartialBatchl",&lt;BR /&gt;"objects": [&lt;BR /&gt;{&lt;BR /&gt;"database": "test_refresh",&lt;BR /&gt;"table": "fCalls"&lt;BR /&gt;}&lt;BR /&gt;, {&lt;BR /&gt;"database": "test_refresh",&lt;BR /&gt;"table": "fOrder"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;The complete link of requested is:&lt;BR /&gt;base_url = '{API_PBI}/groups/{workspace_id}/datasets/{dataset_id}/refreshes'&lt;BR /&gt;headers = {'Authorization': f'Bearer {pbi_token}', 'Content-&lt;BR /&gt;body = {"notifyOption" : "NoNotification", "objects" : dataset_objects}&lt;/P&gt;&lt;P&gt;r = requests.post(url=base_url, headers=headers, data=json.dumps(body))&lt;/P&gt;&lt;P&gt;Thank's&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2023 20:03:37 GMT</pubDate>
    <dc:creator>rafaelBrasil</dc:creator>
    <dc:date>2023-08-10T20:03:37Z</dc:date>
    <item>
      <title>Refresh Tables of Dataset Using Rest API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Refresh-Tables-of-Dataset-Using-Rest-API/m-p/3374969#M43829</link>
      <description>&lt;P&gt;Hi guys, i need a help.&lt;/P&gt;&lt;P&gt;It's possible updated only two tables of a dateset using Power BI API?&lt;/P&gt;&lt;P&gt;Exemple:&lt;BR /&gt;I have a dataset with 4 tables: fSales, fClient, fOrder and fCalls. I wanna updated fCalls and fOrder, the another tables i not wanna updated.&lt;/P&gt;&lt;P&gt;I'm reading the documentation but during my test's i don't have sucessed.&lt;/P&gt;&lt;P&gt;For this exemple the body object used in requested is:&lt;BR /&gt;dataset_objects =&lt;BR /&gt;{&lt;BR /&gt;"refresh": {&lt;BR /&gt;"type": "Automatic",&lt;BR /&gt;"commitMode": "PartialBatchl",&lt;BR /&gt;"objects": [&lt;BR /&gt;{&lt;BR /&gt;"database": "test_refresh",&lt;BR /&gt;"table": "fCalls"&lt;BR /&gt;}&lt;BR /&gt;, {&lt;BR /&gt;"database": "test_refresh",&lt;BR /&gt;"table": "fOrder"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;The complete link of requested is:&lt;BR /&gt;base_url = '{API_PBI}/groups/{workspace_id}/datasets/{dataset_id}/refreshes'&lt;BR /&gt;headers = {'Authorization': f'Bearer {pbi_token}', 'Content-&lt;BR /&gt;body = {"notifyOption" : "NoNotification", "objects" : dataset_objects}&lt;/P&gt;&lt;P&gt;r = requests.post(url=base_url, headers=headers, data=json.dumps(body))&lt;/P&gt;&lt;P&gt;Thank's&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 20:03:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Refresh-Tables-of-Dataset-Using-Rest-API/m-p/3374969#M43829</guid>
      <dc:creator>rafaelBrasil</dc:creator>
      <dc:date>2023-08-10T20:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Tables of Dataset Using Rest API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Refresh-Tables-of-Dataset-Using-Rest-API/m-p/3377507#M43865</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="601517" data-lia-user-login="rafaelBrasil" class="lia-mention lia-mention-user"&gt;rafaelBrasil&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Your body looks more like a XMLA payload. When using the Power BI REST API, Power BI knows already from the URL which dataset to use and that it's all about a refresh. So you only need this part of your request body:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "type": "automatic",
    "commitMode": "partialBatch",
    "objects": [
        {
            "table": "fCalls"
        },
        {
            "table": "fOrder"
        }
    ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can create partitions and only refresh the latest partition if you need to speed up the refresh.&lt;/P&gt;&lt;P&gt;For more details refer to the documentation:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/connect-data/asynchronous-refresh" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/connect-data/asynchronous-refresh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;P class="lia-align-right"&gt;&lt;A title="GitHub" href="https://github.com/MartinBubenheimer" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&lt;A title="linkedin" href="https://www.linkedin.com/in/martin-bubenheimer-9ba99271/" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Aug 2023 20:14:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Refresh-Tables-of-Dataset-Using-Rest-API/m-p/3377507#M43865</guid>
      <dc:creator>Martin_D</dc:creator>
      <dc:date>2023-08-12T20:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Tables of Dataset Using Rest API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Refresh-Tables-of-Dataset-Using-Rest-API/m-p/3764248#M50440</link>
      <description>&lt;P&gt;please tell me can i change the table name of dataset through api, and if i change the table name the reflected that will be show in published report or not ...?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 18:13:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Refresh-Tables-of-Dataset-Using-Rest-API/m-p/3764248#M50440</guid>
      <dc:creator>Shlokyy</dc:creator>
      <dc:date>2024-03-14T18:13:28Z</dc:date>
    </item>
  </channel>
</rss>

