In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more 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