Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Markzolotoy
Impactful Individual
Impactful Individual

Chain query execution

I have one query that generates  a secret key. Another query uses that key to get  a token. After the secret key is provided to the backend it gets invalidated and new key needs to be created. So, how can I execute first query and use its results for the second query?

 

Thanks

2 REPLIES 2
Markzolotoy
Impactful Individual
Impactful Individual

Yes, that should work, but what about a situation when I might have a number of data sources that all need a token to get data? I dont want to request a token every time data is pulled. I need to store it somehow and reuse it.

PhilipTreacy
Super User
Super User

Hi @Markzolotoy 

In the 2nd query that uses the key, make a test request to your API, check for an error in the response that indicates the key is invalid.

If it is invalid then call the first query to generate a new key.

Regards

Phil

 



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.