<?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: How to call PostDatasetInGroup() to create datasets populated by an OData service? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-call-PostDatasetInGroup-to-create-datasets-populated-by/m-p/465634#M14315</link>
    <description>&lt;P&gt;Dale,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, that's what I suspected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an Suggestion Box where we can vote on this issue? If not I might create one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Richard&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jul 2018 14:15:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-18T14:15:31Z</dc:date>
    <item>
      <title>How to call PostDatasetInGroup() to create datasets populated by an OData service?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-call-PostDatasetInGroup-to-create-datasets-populated-by/m-p/464340#M14274</link>
      <description>&lt;P&gt;I want to write a C# program to automate the creation of datasets in an app workspace in Power BI Service. I want the program to create 50 datasets by posting JSON dataset definitions to PostDatasetInGroup() 50 times. Each time the program calls PostDatasetInGroup() I want it to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Give the dataset a unique name&lt;/LI&gt;&lt;LI&gt;Define a table in the dataset&lt;/LI&gt;&lt;LI&gt;Set the Datasource property of the dataset to specify an OData service hosted in the cloud&lt;/LI&gt;&lt;LI&gt;After calling PostDatasetInGroup(), the program will call the Refresh API, and that dataset will query the OData service to get its data (it will _not_ call PostRowsInGroup())&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;My first question: is this possible? In particular, are steps 3 and 4 possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have read this tutorial, which explains how to do steps 1 and 2, but says nothing about whether step 3 is possible: &lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/walkthrough-push-data-create-dataset" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/developer/walkthrough-push-data-create-dataset&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second question: if step 3 is possible, how do I correctly define the Datasource property in JSON, so as to specify that the data comes from an OData service? I've found no examples.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the documentation for PostDatasetInGroup(), where it discusses the Datasource property (and its dependent type, DatasourceConnectionDetails), but again, gives no examples, and specifically no example of how to specify in JSON that the datasource is an OData service: &lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/pushdatasets/datasets_postdatasetingroup#datasourceconnectiondetails" target="_blank"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/pushdatasets/datasets_postdatasetingroup#datasourceconnectiondetails&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if the answer to my first question is No, then I'd appreciate someone saying so. If it is Yes, then I'd appreciate some help figuring out how to write the JSON.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 13:07:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-call-PostDatasetInGroup-to-create-datasets-populated-by/m-p/464340#M14274</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-17T13:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to call PostDatasetInGroup() to create datasets populated by an OData service?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-call-PostDatasetInGroup-to-create-datasets-populated-by/m-p/464546#M14283</link>
      <description>&lt;P&gt;I will also point out this page in the API documentation. Are these limitations that apply to PostDatasetInGroup()?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/api-dataset-properties" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/developer/api-dataset-properties&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 16:06:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-call-PostDatasetInGroup-to-create-datasets-populated-by/m-p/464546#M14283</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-17T16:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to call PostDatasetInGroup() to create datasets populated by an OData service?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-call-PostDatasetInGroup-to-create-datasets-populated-by/m-p/465162#M14304</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm afraid these documents can't be applied in your scenario. The datasets created through APIs are push dataset. The workaround is getting data from the OData service and pushing them into the dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Segoe UI'; font-size: 10.5pt; color: #333333;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Segoe UI'; font-size: 10.5pt; color: #333333;"&gt;Dale&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 07:21:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-call-PostDatasetInGroup-to-create-datasets-populated-by/m-p/465162#M14304</guid>
      <dc:creator>v-jiascu-msft</dc:creator>
      <dc:date>2018-07-18T07:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to call PostDatasetInGroup() to create datasets populated by an OData service?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-call-PostDatasetInGroup-to-create-datasets-populated-by/m-p/465634#M14315</link>
      <description>&lt;P&gt;Dale,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, that's what I suspected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an Suggestion Box where we can vote on this issue? If not I might create one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Richard&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 14:15:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-call-PostDatasetInGroup-to-create-datasets-populated-by/m-p/465634#M14315</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-18T14:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to call PostDatasetInGroup() to create datasets populated by an OData service?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-call-PostDatasetInGroup-to-create-datasets-populated-by/m-p/466044#M14326</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Richard,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I found a similar idea &lt;A href="https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/9366600-update-rows-rest-api" target="_self"&gt;here&lt;/A&gt;. A workaround come to me is as follows. The step 2 in your first post can't be done for now.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1. Create a pbix file in the Desktop.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. Post the pbix file to an App workspace using&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/imports/postimportingroup" target="_self"&gt;imports/postimportingroup&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3. Update the data source using&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/updatedatasourcesingroup" target="_self"&gt;datasets/updatedatasourcesingroup&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4. Trigger a refresh of the dataset using&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/refreshdatasetingroup" target="_self"&gt;datasets/refreshdatasetingroup&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You may give it a try.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Segoe UI'; font-size: 10.5pt; color: #333333;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Segoe UI'; font-size: 10.5pt; color: #333333;"&gt;Dale&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 01:39:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-call-PostDatasetInGroup-to-create-datasets-populated-by/m-p/466044#M14326</guid>
      <dc:creator>v-jiascu-msft</dc:creator>
      <dc:date>2018-07-19T01:39:40Z</dc:date>
    </item>
  </channel>
</rss>

