Forum Discussion

Sergiy's avatar
Sergiy
Resolver II
7 years ago
Solved

How to specify HTTP request header parameter in Power BI service

Hi everyone,   In Power BI Desktop I can connect to Web specifying HTTP request header parameter:   I need my report to get updated in Power BI service as well. The issue is there seems to ...
  • cwebb's avatar
    cwebb
    7 years ago

    Hi Sergiy,

     

    I see you're trying to get data from the Power BI API by writing your own M code in the Power Query Editor - this is not going to work unfortunately, because it is not possible to work with APIs that use OAuth2 authentication in this way. The only way to get data from an API that uses OAuth2 authentication is by creating a custom connector; there is a reasonably easy way to do this that I describe here https://blog.crossjoin.co.uk/2018/11/13/openapi-power-bi-rest-api-m/ and I think other people have blogged about this too.

     

    HTH,

     

    Chris