<?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: Create DataSet with Odata Source from API. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Create-DataSet-with-Odata-Source-from-API/m-p/428046#M12995</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/66316"&gt;@saifeddine&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to create a dataset through API using OData as source, I'm afraid it isn't supported for now. Please refer to:&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;&lt;A href="http://community.powerbi.com/t5/Developer/Problems-on-creating-a-new-dataset-with-Power-BI-s-REST-API/m-p/350754/highlight/true#M10417" target="_self"&gt;Problems-on-creating-a-new-dataset-with-Power-BI-s-REST-API&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;&lt;A href="http://community.powerbi.com/t5/Developer/Create-a-Dataset-programatically/m-p/288276/highlight/true#M8464" target="_self"&gt;Create-a-Dataset-programatically&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;3.&amp;nbsp;&lt;A href="https://msdn.microsoft.com/library/mt203562.aspx" target="_self"&gt;https://msdn.microsoft.com/library/mt203562.aspx&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt;A&amp;nbsp;Dataset&amp;nbsp;also has a&amp;nbsp;defaultMode&amp;nbsp;property, which determines whether the dataset is pushed, streamed, or both, with values of &lt;STRONG&gt;"Push", "Streaming", "PushStreaming", "AzureAS" and "AsOnPrem"&lt;/STRONG&gt;. The default value is "Push".&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The workaround could be retrieving data from OData source in your program and then pushing them into Power BI dataset.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dale&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 May 2018 06:18:01 GMT</pubDate>
    <dc:creator>v-jiascu-msft</dc:creator>
    <dc:date>2018-05-30T06:18:01Z</dc:date>
    <item>
      <title>Create DataSet with Odata Source from API.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Create-DataSet-with-Odata-Source-from-API/m-p/427310#M12956</link>
      <description>&lt;DIV class="lia-message-heading lia-component-message-header"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a dataSet from the PowerBi API with OData Url as datasource.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that request work perfectly but that create a AnalysisServices datasource:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
   "name":"SalesMarketing",
   "defaultMode":"AsOnPrem",
   "tables": [],
   "datasources":[
      {
         "name":"SalesMarketing",
         "connectionString":"Data Source=asazure://westcentralus.asazure.windows.net/mypowerbi;Initial Catalog=SalesMarketing;Cube=Model"
      }
   ]
}&lt;/PRE&gt;&lt;P&gt;that is an example of DataSet with odata source that i created manually and published it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
    "@odata.context": "http://wabi-north-europe-redirect.analysis.windows.net/v1.0/myorg/$metadata#datasources",
    "value": [
        {
            "datasourceType": "OData",
            "connectionDetails": {
                "url": "http://services.odata.org/V4/(S(cswa1ocrxydzpz0gfdqi5obb))/TripPinServiceRW"
            },
            "datasourceId": "e2714955-d44f-4875-a618-be67d989746f",
            "gatewayId": "081e219f-bbe7-441c-bc63-b8e8875c984f"
        }
    ]
}&lt;/PRE&gt;&lt;P&gt;I would like to know how to create a Odata datasource object in json for the API; tha connectionString ... ?&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 29 May 2018 09:39:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Create-DataSet-with-Odata-Source-from-API/m-p/427310#M12956</guid>
      <dc:creator>saifeddine</dc:creator>
      <dc:date>2018-05-29T09:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create DataSet with Odata Source from API.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Create-DataSet-with-Odata-Source-from-API/m-p/428046#M12995</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/66316"&gt;@saifeddine&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to create a dataset through API using OData as source, I'm afraid it isn't supported for now. Please refer to:&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;&lt;A href="http://community.powerbi.com/t5/Developer/Problems-on-creating-a-new-dataset-with-Power-BI-s-REST-API/m-p/350754/highlight/true#M10417" target="_self"&gt;Problems-on-creating-a-new-dataset-with-Power-BI-s-REST-API&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;&lt;A href="http://community.powerbi.com/t5/Developer/Create-a-Dataset-programatically/m-p/288276/highlight/true#M8464" target="_self"&gt;Create-a-Dataset-programatically&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;3.&amp;nbsp;&lt;A href="https://msdn.microsoft.com/library/mt203562.aspx" target="_self"&gt;https://msdn.microsoft.com/library/mt203562.aspx&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt;A&amp;nbsp;Dataset&amp;nbsp;also has a&amp;nbsp;defaultMode&amp;nbsp;property, which determines whether the dataset is pushed, streamed, or both, with values of &lt;STRONG&gt;"Push", "Streaming", "PushStreaming", "AzureAS" and "AsOnPrem"&lt;/STRONG&gt;. The default value is "Push".&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The workaround could be retrieving data from OData source in your program and then pushing them into Power BI dataset.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dale&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 06:18:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Create-DataSet-with-Odata-Source-from-API/m-p/428046#M12995</guid>
      <dc:creator>v-jiascu-msft</dc:creator>
      <dc:date>2018-05-30T06:18:01Z</dc:date>
    </item>
  </channel>
</rss>

