Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17881

Create DataSet with Odata Source from API.

$
0
0
 

Hi,

 

I am trying to create a dataSet from the PowerBi API with OData Url as datasource. 

 

that request work perfectly but that create a AnalysisServices datasource: 

 

{
   "name":"SalesMarketing",
   "defaultMode":"AsOnPrem",
   "tables": [],
   "datasources":[
      {
         "name":"SalesMarketing",
         "connectionString":"Data Source=asazure://westcentralus.asazure.windows.net/mypowerbi;Initial Catalog=SalesMarketing;Cube=Model"
      }
   ]
}

that is an example of DataSet with odata source that i created manually and published it:

 

{
    "@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"
        }
    ]
}

I would like to know how to create a Odata datasource object in json for the API; tha connectionString ... ? 


Viewing all articles
Browse latest Browse all 17881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>