Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
Hi,
My API connection works well in Postman, but i was not able to establish/authenticate the connection in PowerBI.
I tried, Web option and Advance editor. Anyhow, i am new to the API side, so not sure what went wrong. Here below i shared some screenshots, Please support
Request provides the response in Postman
One of the option i tried. Apart from below i tried, Basic option and entered the APIKey as a username and the API option.
Nothing works.
Let me know if you need any more info. Thanks in advance
Hi @Peter_Jeyaraj_I ,
According to your description, to call this api in Power BI, you need to create an application in the Power BI Developer's Portal. This application provides reusable client ID and client key with which we can generate the embedded token required for the REST API. link
Follow the steps in the following blog to test again.
If the problem is still not resolved, please point it out and provide related operation screenshoots. Looking forward to your feedback.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Henry,
Thanks for your inputs.
Getting below error msg when i try the "Authorize User" Step, while registering the app in PowerBI
Hi @Peter_Jeyaraj_I ,
Please log in Azure portal with the account registered that app and grant permissions.
Refer to the relevant official documentation as below:
Delegate application management administrator permissions - Azure AD | Microsoft Docs
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-henryk-mstf ,
Added the permission via Portal.azure.com. anyhow, still getting the same error msg.
Getting below msg, when i try to get data via PowerBI.
First time exploring this API, so not sure whether i am following the right steps. If possible, could you please share the step by step process for API authentication in PowerBI.. It would be great help for me.
It works now by using the token number generated from postman. hope I can able to proceed further. will come back if i stuck again
Hi @Peter_Jeyaraj_I ,
Thank you very much for your feedback. If the advice I provided was helpful to you, you can mark it as the correct solution to help the other members find it more quickly.
Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-henryk-mstf ,
Moved to the 2nd step, but still i am getting the below erros while generating the token number.
M-Query
let
// Basic auth
authKey = "Basic ****************************",
url = "https://api-e2e.danfoss.com/oauth2/token",
// bearer token
GetJson = Web.Contents(url,
[
Headers = [#"Authorization"=authKey,
#"Content-Type"="application/x-www-form-urlencoded;charset=UTF-8"],
Content = Text.ToBinary("grant_type=client_credentials")
]
)
in
GetJson
Error msg
See the working http from postman
thanks in advance for your support
User | Count |
---|---|
90 | |
88 | |
87 | |
79 | |
49 |
User | Count |
---|---|
153 | |
145 | |
106 | |
74 | |
55 |