Forum Discussion
Power BI Desktop - Unable to pull from OData feed using Token authentication
- Anonymous9 years ago
Hi r_beacroft,
If you connect to OData feed using the following entry, and then enter your password, are you able to get desired result?If not, add a new blank query in Power BI Desktop, then paste one of the following codes in Advanced Editor and check if you get expected result.
let Source = OData.Feed("URL", null, [Headers = [Authorization = "Bearer Your token" ] ]) in Sourcelet Source = Web.Contents("URL", [Headers=[#" Authorization " = "Bearer Your token"]]) in SourceThere are a similar thread and blog for your reference.
http://stackoverflow.com/questions/33225590/authenticating-with-excel-power-query-against-net-odata-web-api
http://angryanalyticsblog.azurewebsites.net/index.php/2016/05/16/api-strategies-with-power-bi/Thanks,
Lydia Zhang
Hey Bavix, I am trying to do a similar solution, maybe you did it in PowerBi Report Server Locally. Where did you set the Organizational option and skip the connection test?
Thank you
Hi kdhawan,
I was activating the automatic refreshing in PBI Service, not in Report Server.