Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
We’re experiencing technical issues with our vendor that are affecting license activations for Designer Desktop. We don’t yet have an estimated resolution time. We apologize for the inconvenience and will share updates as we have them.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Dynamic R Tool Updating

ncarrillo5
5 - Atom

Hi All!

 

I am currently using the R tool to create an Alteryx Macro. I am fairly new to Macros and need help with the following:

 

I need to dynamically populate a field using the ListBox (or any other Macro that would work) using a table in the workflow. The end goal is to have the user select the table that they want to use, and then select the field that they want to use to run in the RCode. 

 

You can see the workflow below shows the general idea of my approach. I simply need the selected field name to update the "col" string in the RCode as highlighted below.

 

Any ideas or further tips help! Thanks :)

 

sample1.pngsample2.png

 

 

1 REPLY 1
NeilR
Alteryx Alumni (Retired)

Check out this article. As Dr Dan explains, you can use question constants in the R code.

Labels
Top Solution Authors