Forum Discussion

Armand_Theron's avatar
Armand_Theron
Frequent Visitor
6 years ago
Solved

Rest API Export Report to PDF that uses Azure Analysis Service as a data set

Hi; I'm using the Rest API Call : POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/ExportTo.   I can successfully export a pdf report if the data is stored in PowerBI. ...
  • Armand_Theron's avatar
    6 years ago

    Hi;

     

     

        Just an update on the solution.

        It seems to pass the effective identity one needs to add the following into the body :

       

    {

        "format": "pdf",

        "powerBIReportConfiguration": {

            "identities": [

                {

                    "username": "{ ServicePrincipal Object ID }",

                    "roles": [

                        "{Role in AAS}"

                    ],

                    "datasets": [

                        "{datasetID}"

                    ]

                }

            ]

        }

    }

     

    *Just also note as per the MS documentation that one needs to pass in the Service Principal object id and not the service ServicePrincipal app id