Forum Discussion
gilbertendaya
5 years agoHelper IV
Get authorization token from API url
How can I get the authorization token value? I'm using advanced editor in power BI desktop. I do have the generating token URL also the credentials (user and password). let GetJson = Web.Conten...
gilbertendaya
5 years agoHelper IV
Hi amitchandak I saw this but it is using client id instead of username/password 😞
amitchandak
5 years agoSuper User
ImkeF , any suggestions on this
- ImkeF5 years agoCommunity Champion
Hi gilbertendaya ,
if you're trying to create an oauth flow in Power Query, you need to create a custom connetor, I'm afraid.
You can find some details on the auth-part here: https://docs.microsoft.com/en-us/power-query/handlingauthenticationThis gives a good overview of the steps involved to create a custom connector: https://jussiroine.com/2019/02/building-a-custom-connector-for-power-bi-that-supports-oauth2-to-visualize-my-wellness-data/
- gilbertendaya5 years agoHelper IV
hi ImkeF thank you for the reply. Is there no easy way in M-query to do this?
- gilbertendaya5 years agoHelper IV
hi ImkeF and amitchandak
do you know how to convert this to M-query?{"limit": 10,"aggregate": [{"$sort": {"dateProcessed": -1}},{"$match": {}}]}This is for the body.