Community Halloween is live until October 31st! Complete any 2 quick activities to earn the 2025 Community Halloween badge. Feeling brave? Check out the activities here
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