Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Download Tool- token refresh

Shivshankar11
5 - Atom

Authorization header token get expires in 30 minutes for large sets of subsequent API calls. Is there way to replace token before API calls.

1 REPLY 1
danilang
19 - Altair
19 - Altair

Hi @Shivshankar11 

 

Assuming you're making the subsequent API calls in an Iterative Macro, pass in a DateTime field [TokenTime] which contains the time you first get the token.  Before every subsequent API call, check the difference between the DateTimeNow() and [TokenTime].  If it's greater than 25 minutes, make a call to get a new Token and update [TokenTime] with the current time.  

 

Dan

Labels
Top Solution Authors