The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello,
I got this problem when I connect PBI with API Rest using Web.contents()
I don't understand what happened. Someone can explain to me ?
Here my code :
let
Source = Json.Document(Web.Contents("xxx",
[
RelativePath = "xxx",
Content=Text.ToBinary(""),
Headers=[#"Content-Type"="application/json",
Authorization="Bearer xxx"
]
]))
in
Source
Thanks !
Solved! Go to Solution.
Hi @EPetit
It should be #"Authorization" in Headers
let
Source = Json.Document(Web.Contents("xxx",
[
RelativePath = "xxx",
Content=Text.ToBinary(""),
Headers=[#"Content-Type"="application/json",
#"Authorization"="Bearer xxx"
]
]))
in
Source
Phil
If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.
Proud to be a Super User!
Hi @EPetit
It should be #"Authorization" in Headers
let
Source = Json.Document(Web.Contents("xxx",
[
RelativePath = "xxx",
Content=Text.ToBinary(""),
Headers=[#"Content-Type"="application/json",
#"Authorization"="Bearer xxx"
]
]))
in
Source
Phil
If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.
Proud to be a Super User!
Are you intentionally making this a POST request?
Does the same request work from an API test site? Like https://reqbin.com/
User | Count |
---|---|
86 | |
84 | |
36 | |
35 | |
32 |
User | Count |
---|---|
95 | |
75 | |
67 | |
53 | |
52 |