<?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: Processing model from code in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Processing-model-from-code/m-p/2120775#M32271</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/330113"&gt;@tvinko&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please review the content in the following links, hope they can give some clue and idea.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://stackoverflow.com/questions/57986480/programmatically-deploying-power-bi-reports-to-power-bi-report-server-and-change" target="_self"&gt;Programmatically Deploying Power BI Reports to Power BI Report Server and change Connection String&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://endjin.com/blog/2020/12/how-to-update-credentials-for-an-on-prem-power-bi-data-source-using-powershell" target="_self"&gt;&lt;STRONG&gt;How to update credentials for an on-prem Power BI data source using PowerShell&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Thu, 07 Oct 2021 06:45:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-10-07T06:45:46Z</dc:date>
    <item>
      <title>Processing model from code</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Processing-model-from-code/m-p/2113355#M32206</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created dataset on PPU workspace that contains deployed model with on-premise sources (model is deployed through C#&amp;nbsp; code, using TOM library).&lt;BR /&gt;Deploy went well, but I'm having problems with processing datasource.&lt;BR /&gt;I cannot find a way to create connection string to on-premise source.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Meanwhile, I created second model with the same on-premise datasource with PowerBI client and published on the PPU workspace.&lt;BR /&gt;when I click on Connection-&amp;gt;Script Connection as-&amp;gt; Create To from SSMS, I get following script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
"create": {
"parentObject": {
"database": "test_delete"
},
"dataSource": {
"name": "ea2de3af-dbac-44d4-bddc-52df729c086b",
"connectionString": "Provider=Microsoft.PowerBI.OleDb;Global Pipe=f26e04ac-4669-496b-b3a4-f313fe673cd1;Mashup=\"VERY_LONG_STRING\";Location=\"dim CustomerView\"",
"impersonationMode": "impersonateCurrentUser"
}
}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How can I connect to this datasource with my code?&lt;/P&gt;&lt;P&gt;I cannot find a way to create conenction string properly because I'm not familiar with "Global Pipe" and Mashup variables,&lt;BR /&gt;which PBI construct automatically.&lt;/P&gt;&lt;P&gt;I also checked PowerBI Api's (&lt;A href="https://api.powerbi.com/v1.0/myorg/" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/&lt;/A&gt;) on how to process PBI datasource from code, but cannot find any clue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I recap:&lt;BR /&gt;- I have installed and configured gateway properly&lt;BR /&gt;- I can connect to PBI workspace and deploy model from my code&lt;BR /&gt;- the problem is when I try to process analysis services from code because it points to on-premise datasource&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder if there is also another way to process model?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 09:18:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Processing-model-from-code/m-p/2113355#M32206</guid>
      <dc:creator>tvinko</dc:creator>
      <dc:date>2021-10-04T09:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Processing model from code</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Processing-model-from-code/m-p/2120775#M32271</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/330113"&gt;@tvinko&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please review the content in the following links, hope they can give some clue and idea.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://stackoverflow.com/questions/57986480/programmatically-deploying-power-bi-reports-to-power-bi-report-server-and-change" target="_self"&gt;Programmatically Deploying Power BI Reports to Power BI Report Server and change Connection String&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://endjin.com/blog/2020/12/how-to-update-credentials-for-an-on-prem-power-bi-data-source-using-powershell" target="_self"&gt;&lt;STRONG&gt;How to update credentials for an on-prem Power BI data source using PowerShell&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 06:45:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Processing-model-from-code/m-p/2120775#M32271</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-07T06:45:46Z</dc:date>
    </item>
  </channel>
</rss>

