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.
hi Guys,
i have url and want to get sent http request with headers with authentification.
There is CSV document which i want to import into power query.
"f03ea527-ef1111111111111" this is tenantID from azure portal.
First Content is json but i want to get CSV from it.
Tried with:
(Web.Contents("https://local-node.something.com:9999/v1/bundles/Excel/data/something:excel-notderived/1.0.0/ListYes..."), [Headers=[#"Authorization"="Bearer f03ea527-ef1111111111111", #"Content-Type"="application/json"]],[Delimiter=","])
But what i am getting is:
something is missing to convert json into CSV or i am doing this entirely wrong.
Can you please help?
Best,
Jacek
Solved! Go to Solution.
Ok Guys i didnt inclue "" as and of statement:
AccessTokenVal & ""
Problem solved,
Best,
Jacek
Ok Guys i didnt inclue "" as and of statement:
AccessTokenVal & ""
Problem solved,
Best,
Jacek
Hi Guys,
i managed to get Access token using method from here:
https://community.powerbi.com/t5/Power-Query/OAuth2-REST-API-as-data-source/td-p/414748
working fine!
so i have variable AccessTokenVal which looks like:
And now i tried to use Json.Document to get data:
"Json.Document(Web.Contents("https://local-node.something.com:9999/v1/bundles/Excel/data/something:excel-notderived/1.0.0/ListYes..."), [Headers=[#"Content-Type"="application/json",#"Authorization"="Bearer " & AccessTokenVal]])
but error is:
i found that when body is needed it should be like Json.ToBinary function to make this working.
But i do not have any body, just headers and url within Get method...
thank you very much for help,
Jacek
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 |
---|---|
96 | |
95 | |
80 | |
74 | |
66 |
User | Count |
---|---|
130 | |
106 | |
105 | |
86 | |
72 |