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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
briceem
Frequent Visitor

Update parameters or other Request from M Code

Hi,

 

I would like to use an API which has a particular authentication flow, I quote: 

Use the API Client ID and TGT generated in user interface (web app) to authenticate.
The call returns a TGT and a token. The TGT is valid for 180 days, the token is cycled with every call.
Every API call returns a fresh token in its response metadata, for use in the subsequent call.
The TGT is used whenever authentication is required.

 

So in order to use it in PowerBI (I would also need data service ), I would like to:

1) fill the initial TGT in an dedicated request (or parameters or other thing ??)

2) use this TGT to make a POST to the token endpoint

3) from the response:

a) retrieve the TGT and update the dedicated request (or parameters or other thing ??) from step 1, so it will be up-to-date for next refresh

b) retrieve the token and use it for subsequent request.

 

I have no issue to do every step except the 3)a ?

 

I tried to use parameters, but didn't figure out how to update it ?

I tried to use dedicated requests but failed to update it.

I even think about azure keyvault, but unfortunately I noticed PUT method is not available in Power Query M 😓

 

Thanks in advance

0 REPLIES 0

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.