Free Trial

Alteryx Designer Desktop Discussions

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

Use Pre-request script to handle bearer token generation when calling API

adam_rafael_18
8 - Asteroid

Hi,

 

I to be able to use my username & password in a pre-request script (or even just standard download) to pull a bearer token (which can then be used in a future download) - is there a way in alteryx to build the pre-request script?

3 REPLIES 3
apathetichell
19 - Altair

You structure this as an intial call to hit a token endpoint in the download tool. You then json parse the downloadData (response) to extract that token - and use it for subsequent download tool calls.

adam_rafael_18
8 - Asteroid

Thanks for the response - What are the parameters/headers to input my username and password?

adam_rafael_18
8 - Asteroid

Think I figured it out - there's a username & password input on the Connection tab. Thank you!

Labels
Top Solution Authors