We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Interface action to enable macro based on a condition

DanielCarro
8 - Asteroid

Hi,

 

I am struggling with an issue and need some advice.

 

So, I have a formula with a condition:

If [Needs Approval]="YES" THEN "YES" ELSE "NO" EndIf

 

I need to instruct the macro to send an email but I need it to trigger based on "YES".

 

Once I enter the control parameter, not sure how to specify in the action to recognize "YES"

 

Much appreciated your assistance.

 

Regards,

Dan

 

 

4 REPLIES 4
JosephSerpis
17 - Castor
17 - Castor

Hi @DanielCarro I would use a Interface Condtion tool connected between the Control Parameter and via the T anchor of the condtion tool to the Action tool . In the condtion Tool a formula like [#1]="Yes" will only flow to the action tool when it equals Yes. [#1] is the name of the stream (line) between the Control paramter and action tool so therefore may be different for you based on your workflow. If you just click on the control parmater from the section of Connections from question when you are setting up the condtion tool it will just autofill that section for you. 

DanielCarro
8 - Asteroid

Hi @JosephSerpis 

 

Not sure if I am following you but giving me error

 

DanielCarro_0-1674398393957.png

 

DanielCarro_1-1674398943989.pngDanielCarro_2-1674399006376.png

 

Kind Regards,

Dan

JosephSerpis
17 - Castor
17 - Castor

Hi @DanielCarro you are on the right track. However rather then type your field out in the condtion click on it. You will see it as [#1] as that is the name of the stream/line between the control parameter and condtion tool. Next your action tool needs to set be as Enable/Disable Container from condtion via the dropdown. Have a look at the attached macro for referance.

DanielCarro
8 - Asteroid

Hi @JosephSerpis , it worked. Many thanks for your help

Labels
Top Solution Authors