title: Instantiate Power BI template from script
body: <p>I have an application that generates customer-specific datasets of a predefined format. These data sets can be queried via parameterized calls to a REST-API - i.e. the query needs to contain a <code>customer id</code>. The application generates new data periodically, which can be queried from the REST API by altering additional parameters, e.g. <code>date</code>.</p>
  
  <p>The parameterization in Power BI can be achieved using <a href="https://powerbi.microsoft.com/de-de/blog/deep-dive-into-query-parameters-and-power-bi-templates/" rel="nofollow noreferrer">Power BI Templates</a>.
  As described <a href="https://stackoverflow.com/questions/52146213/pass-parameters-in-cmd-while-opening-power-bi-desktop">here</a>, these parameters have to be manually set in the form that pops up when opening the template. Since new data is supposed to be queried for a lot of different customers, I cannot and do not want to set the parameters within the graphical user interface.</p>
  
  <p>I opened this thread for asking two questions:</p>
  
  <ul>
  <li>Is it possible by now to instantiate Power BI templates from a text-based environment? (e.g. shell script, python etc.)</li>
  <li>If not, is there an alternative solution to this problem? Can you point me in the right direction?</li>
  </ul>
  
  <p><strong>Important</strong>: For alternative solutions, please keep in mind that the data used is sensitive - e.g. it is important that data of different customers remains completely isolated.</p>