Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.

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