Forum Discussion
Connection to external API via Dataflow (or Desktop) - "The 'Authorization' header is only suppo..."
Ok, so if i could print out all the pages i've read on this this afternoon and put on a wall it would look like one of those information (murder ?)walls from your favourite cop show.
I am trying to connect to a platform via an API using dataflows.
I have a postman query working and it returns three token values. Evidence below.
Do you think i could replicate this in PQ in Service or PBI Desktop !
Now according to API spec (SmartCap API Documentation (smartcaplife.com)) it needs to be a POST so I know i need a contents section to the web.contents call...but i'm not following what to set that as ?
The error i get at the moment is around authorisation and anonymous connections as per below.
Expression.Error: The 'Authorization' header is only supported when connecting anonymously. These headers can be used with all authentication types: Accept, Accept-Charset, Accept-Encoding, Accept-Language, Cache-Control, Content-Type, If-Modified-Since, Prefer, Range, Referer
Any ideas ?
Hi, frano72
You can reference this solved case:Solved: How to pull data from Web API into PowerBI using A... - Microsoft Power BI Community Maybe it will help.
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 Replies
- v-janeyg-msft
Community Support
Hi, frano72
You can reference this solved case:Solved: How to pull data from Web API into PowerBI using A... - Microsoft Power BI Community Maybe it will help.
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- frano72
Helper IV
Hi, thanks ! That did actually help.