Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Hi Guys!
I'm completely new to PowerBI and API's... I want to retrieve data via Request URL's.
First I need to login to get a token:
https://dashboard.emb2020.nl/api/Security/Logon?username=USERNAME&password=PASSWORD
Then you'll get this response body:
{ "token": "EDSF4wffrhwszurfhawsuhrf==",
"userID": "FIRST and LASTNAME",
"emb": true,
"language": "nl-nl",
"i10n": true, "resultCode": 4,
"resultText": "RECONNECT",
"resultDescription": "Reconnect gelukt" }Now I want to use this token in the next request:
https://dashboard.emb2020.nl/api/Company/GetCompanies?api_key=TOKEN
The token changes everytime you login, so you can't hardcode it.
What's the easiest way to do this?
You have one hour before it expires.
You coulde refer to :
https://community.powerbi.com/t5/Power-Query/Refresh-token-api-call/m-p/937553
https://www.bmc.com/blogs/microsoft-apis-authentication-tokens/
I also had the same issue
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |