Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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/
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |