Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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
User | Count |
---|---|
98 | |
90 | |
82 | |
73 | |
67 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
67 |