<?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: API Changing the data source of a dataflow in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/API-Changing-the-data-source-of-a-dataflow/m-p/3013559#M40669</link>
    <description>&lt;P&gt;I have found out how to do this and here is the script:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$groupId = ""

 

$dataflowId = ""

 

$dataflowUpdate = "{
    'name' : 'Updated Dataflow Name',
    'description' : 'This is the updated dataflow description'
}"

 


$url = "groups/$groupId/dataflows/$dataflowId"

 

Invoke-powerBIRestMethod -Method Patch -Url $url -Body $dataflowUpdate -ContentType "application/json"&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 11 Jan 2023 10:56:33 GMT</pubDate>
    <dc:creator>Charline_74</dc:creator>
    <dc:date>2023-01-11T10:56:33Z</dc:date>
    <item>
      <title>API Changing the data source of a dataflow</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-Changing-the-data-source-of-a-dataflow/m-p/3002707#M40590</link>
      <description>&lt;P&gt;I would like to know if it is possible to change the data source of a dataflow with an API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;I have a pipeline in which I have a workspace of DEV, TEST and PROD.&lt;/P&gt;&lt;P&gt;And I would like that when I deploy the dataflow on the different environments the data source of the dataflow changes too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For info I use gataway in my dataflow&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 08:14:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-Changing-the-data-source-of-a-dataflow/m-p/3002707#M40590</guid>
      <dc:creator>Charline_74</dc:creator>
      <dc:date>2023-01-05T08:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: API Changing the data source of a dataflow</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-Changing-the-data-source-of-a-dataflow/m-p/3004815#M40606</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/475779"&gt;@Charline_74&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I check on the power bi rest API document but not found any Dataflow API suitable to your requirement. Perhaps you can submit an idea for adding support to use rest API change the dataflow data sources.&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;BR /&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>Fri, 06 Jan 2023 02:42:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-Changing-the-data-source-of-a-dataflow/m-p/3004815#M40606</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-06T02:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: API Changing the data source of a dataflow</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-Changing-the-data-source-of-a-dataflow/m-p/3013559#M40669</link>
      <description>&lt;P&gt;I have found out how to do this and here is the script:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$groupId = ""

 

$dataflowId = ""

 

$dataflowUpdate = "{
    'name' : 'Updated Dataflow Name',
    'description' : 'This is the updated dataflow description'
}"

 


$url = "groups/$groupId/dataflows/$dataflowId"

 

Invoke-powerBIRestMethod -Method Patch -Url $url -Body $dataflowUpdate -ContentType "application/json"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 11 Jan 2023 10:56:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-Changing-the-data-source-of-a-dataflow/m-p/3013559#M40669</guid>
      <dc:creator>Charline_74</dc:creator>
      <dc:date>2023-01-11T10:56:33Z</dc:date>
    </item>
  </channel>
</rss>

