Forum Discussion

RayGn2000's avatar
RayGn2000
Frequent Visitor
5 years ago

Power BI Bearer token REST API throws error The remote server returned an error: (400) Bad Request.

I am trying to refresh PBI dataset programmatically and to do so I am trying to get oath beaer token using the code below. The code works fine with a console app. But when I embed the code into a WCF...