<?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 Update Datasource in Paginated report using Power BI in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Update-Datasource-in-Paginated-report-using-Power-BI/m-p/3272107#M43003</link>
    <description>&lt;P&gt;Hi DEVs,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to update datasource of paginated reports using PBI Dataset from DEV workspace's dataset to PROD workspace's dataset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are 100+ paginated reports and it's hard to update the datasource to PROD dataset everytime deploying to Production workspace&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there's any way I can update &lt;SPAN&gt;programatically&lt;/SPAN&gt; using Python or PowerShell?&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2023 07:54:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-06-07T07:54:34Z</dc:date>
    <item>
      <title>Update Datasource in Paginated report using Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Update-Datasource-in-Paginated-report-using-Power-BI/m-p/3272107#M43003</link>
      <description>&lt;P&gt;Hi DEVs,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to update datasource of paginated reports using PBI Dataset from DEV workspace's dataset to PROD workspace's dataset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are 100+ paginated reports and it's hard to update the datasource to PROD dataset everytime deploying to Production workspace&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there's any way I can update &lt;SPAN&gt;programatically&lt;/SPAN&gt; using Python or PowerShell?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 07:54:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Update-Datasource-in-Paginated-report-using-Power-BI/m-p/3272107#M43003</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-07T07:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Update Datasource in Paginated report using Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Update-Datasource-in-Paginated-report-using-Power-BI/m-p/3275655#M43027</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;To change the data source of a paginated report programmatically, you can use the Power BI REST API. Here are the high-level steps you can follow:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Get the report ID of the paginated report you want to modify.&lt;/LI&gt;
&lt;LI&gt;Get the data source ID of the dataset you want to modify.&lt;/LI&gt;
&lt;LI&gt;Modify the connection string of the data source using the Power BI REST API.&lt;/LI&gt;
&lt;LI&gt;Update the data source of the dataset using the Power BI REST API.&lt;/LI&gt;
&lt;LI&gt;Update the report using the Power BI REST API.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;Here are some references that can help you with the implementation:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Get the report info:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/reports/get-reports" target="_blank"&gt;Reports - Get Reports - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Get the data source:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/get-datasources" target="_blank"&gt;Datasets - Get Datasources - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Update data source:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/update-datasources" target="_blank"&gt;Datasets - Update Datasources - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/report-server/connect-data-source-apis" target="_blank"&gt;Change data source connection strings with PowerShell - Power BI | Microsoft Learn&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Get the report info:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/reports/update-report-content" target="_blank"&gt;Reports - Update Report Content - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please note that&lt;/STRONG&gt; you need to have the necessary permissions to perform these actions. Also, make sure that the data source in the prod environment has the same schema and data as the one in the dev environment.&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 02:33:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Update-Datasource-in-Paginated-report-using-Power-BI/m-p/3275655#M43027</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-09T02:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Update Datasource in Paginated report using Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Update-Datasource-in-Paginated-report-using-Power-BI/m-p/3276011#M43033</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Will it also publish the report to PROD workspace? or just change the datasource in DEV workspace&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 07:13:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Update-Datasource-in-Paginated-report-using-Power-BI/m-p/3276011#M43033</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-09T07:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Update Datasource in Paginated report using Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Update-Datasource-in-Paginated-report-using-Power-BI/m-p/3282701#M43068</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It will only update the data source from DEV environment to PROD environment. You can use Power BI deployment pipelines to clone content from one stage in the deployment pipeline to another, typically from development to test, and from test to production. During deployment, Power BI copies the content from the current stage&amp;nbsp;into the target one. The connections between the copied items are kept during the copy process. Power BI also applies the configured deployment rules to the updated content in the target stage.&lt;/P&gt;
&lt;P&gt;You can also deploy content programmatically using the deployment pipelines REST APIs. You can learn more about this process in Automate your deployment pipeline using APIs and DevOps.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/deployment-pipelines-process" target="_blank"&gt;The Power BI deployment pipelines process - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/deployment-pipelines-best-practices" target="_blank"&gt;Best practices for deployment pipelines, the Power BI Application lifecycle management (ALM) tool - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 02:34:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Update-Datasource-in-Paginated-report-using-Power-BI/m-p/3282701#M43068</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-14T02:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Update Datasource in Paginated report using Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Update-Datasource-in-Paginated-report-using-Power-BI/m-p/4367896#M59103</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp; is this issue resolved ? Please let me know as I also have to do this.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 17:17:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Update-Datasource-in-Paginated-report-using-Power-BI/m-p/4367896#M59103</guid>
      <dc:creator>ypyash75</dc:creator>
      <dc:date>2025-01-16T17:17:06Z</dc:date>
    </item>
  </channel>
</rss>

