Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
This is going to be so simple to somebody but I don't know where to start and I've tried searching the forum but getting myself even more confused.
I have to connect to a system that publishes a dynamic API key every 24 hours. I can do these two steps manually but just can't combine them.
let
GetAPIKey = Json.Document(Web.Contents("http://SomeSystemPath/Auth?UserName=MyUserName&Password=MyPassword")),
'The above returns the API Key but how do I pass it to the following bits
Source = Json.Document(Web.Contents("https:////SomeSystemPath/Levels?WarehouseId=3&APIKey=GetAPIkey")),
in Source
Any helpwould be greatly appreciated...
Thanks
Tom
Solved! Go to Solution.
Please try this instead.
let
GetAPIKey = Json.Document(Web.Contents("http://SomeSystemPath/Auth?UserName=MyUserName&Password=MyPassword")),
Source = Json.Document(Web.Contents("https:////SomeSystemPath/Levels?WarehouseId=3&APIKey=" & GetAPIkey))
in Source
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Please try this instead.
let
GetAPIKey = Json.Document(Web.Contents("http://SomeSystemPath/Auth?UserName=MyUserName&Password=MyPassword")),
Source = Json.Document(Web.Contents("https:////SomeSystemPath/Levels?WarehouseId=3&APIKey=" & GetAPIkey))
in Source
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 17 | |
| 9 | |
| 9 | |
| 7 | |
| 7 |