8
Views
1
Comments
What Requset( Json ) Need to pass to generate Power bi Token
Question
Application Type
Reactive

Hello ,

I Want to embed Power BI Reports in Reactive web app. 

"https://api.powerbi.com/v1.0/myorg/GenerateToken" For this API want Request need to pass.

{

  "datasets": [

    {

      "id": "b2e49b01-2356-4456-bfb9-3f4c2bc4ddbd", - which id need to pass here

      "xmlaPermissions": "ReadOnly"

    },

    {

      "id": "cfafbeb1-8037-4d0c-896e-a46fb27ff229", - which id need to pass here

      "xmlaPermissions": "ReadOnly"

    }

  ],

  "reports": [

    {

      "allowEdit": false,

      "id": "f904e89a-7ebe-4aa0-8647-e409063b4850" - which id need to pass here 

    }

  ],

  "datasourceIdentities": [

    {

      "datasources": [

        {

          "datasourceType": "Sql",

          "connectionDetails": {

            "account": "",

            "classinfo": "",

            "database": "Database3", -here what need to pass

            "domain": "",

            "emailAddress": "",

            "kind": "",

            "loginServer": "",

            "path": "",

            "server": "Best-Sql-Server", -here what need to pass

            "url": ""

          }

        }

      ],

      "identityBlob": "eyJ0eX....AAA=" - here what need to pass 

    }

  ],

  "identities": [

    {

      "customData": "",

      "datasets": [

        "cfafbeb1-8037-4d0c-896e-a46fb27ff229" - here what need to pass 

      ],

      "identityBlob": "",

      "reports": [

          "f904e89a-7ebe-4aa0-8647-e409063b4850" -  here what need to pass

      ],

      "roles": [

        "sales"

      ],

      "username": "john@contoso.com" -which user name need to pass here

    }

  ],

  "targetWorkspaces": [

      {

          "id": "b2e49b01-2356-4456-bfb9-3f4c2bc4ddbd" -which id need to pass here

      }

  ],

  "lifetimeInMinutes": 10

}


I am having tenanat Id, tenant Secrete, Report id and group id with me. 

Can you plz tell me what Request need to pass for above API.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Bharat,

Your question has little to do with OutSystems itself. It seems you need guidance on how to implement the PowerBI API. You're probably better off studying the Power BI API documentation, or ask on a PowerBI developers forum.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.