Forum Discussion

sanjeevgaut's avatar
sanjeevgaut
Frequent Visitor
5 years ago
Solved

PowerBIClient does not have any value.

I am trying to read powerbi report using powerbi SDk. I got correct access token (tested in postman). Same access token is passed for TokenCredentials. but not getting any value in _powerBIClient. it...
  • sanjeevgaut's avatar
    5 years ago

    Instead of 

    var _powerBIClient = new PowerBIClient(new Uri("https://api.powerbi.com/"), tokenCredentials);

    added below and it worked.

    var _powerBIClient = new PowerBIClient(new Uri("https://api.powerbi.com"), tokenCredentials);