Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start 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
20 - Arcturus

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