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. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. 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

Using R tool to generate API access token

gcbell
6 - Meteoroid

Hey All,

 

I'm not very experienced with R but I think it could be a great tool for generating an access token for an API.

 

I can successfully run and generate the access token no problem but I'm not certain how to pass the token from the tool's messages into an output.

 

I imagine this is a fairly simple process but no amount of reading documentation has done it for me.

 

Thanks in advance!

 

gcbell_0-1653412847434.png

 

5 REPLIES 5
IraWatt
17 - Castor
17 - Castor

Hey @gcbell,

Go to insert code-> write output-> then select which output you want to write to

IraWatt_0-1653413220961.png

 

gcbell
6 - Meteoroid

Embarrassing to admit but I don't even know what my variable is named. I assume I have a variable?

IraWatt
17 - Castor
17 - Castor

@gcbell No embarrassment :) try

 write.Alteryx(content(response,"text"), 1) 

 Or

 write.Alteryx(response, 1) 

See what comes out of output anchor 1 

gcbell
6 - Meteoroid

Top one did it. Thanks for the assist here.

IraWatt
17 - Castor
17 - Castor

No worries @gcbell ! 

Labels
Top Solution Authors