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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.