Alteryx Designer Desktop Discussions

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

Workflow

anupgupta12
8 - Asteroid

Hi There!

 

Does anybody know, if Alteryx has functionality like if value is true the run the workflow ,if not the do not run, 

 

OR

 

If value is then write output, if not then do not write

3 REPLIES 3
mceleavey
17 - Castor
17 - Castor

Hi @anupgupta12 ,

 

there are tools out there written by some of the users, but the easiest way to explain this is to wrap the process in a macro, then create your logic, then feed the logic into the macro as a control parameter and use this to switch containers on and off. 

The output will be in a container, if there are no records (record count=0) then switch container off.

 

You can also look at the Message tool, which allows you to stop the workflow if a certain logical check fails. However, this will fail your workflow with an error, but will stop the processing.

 

M



Bulien

anupgupta12
8 - Asteroid

Can you share a workflow?

Jonny
11 - Bolide

Hi @anupgupta12,

 

 

For the first question - See attached example, it can probably be what you are looking for.

1/ Block until Done tool

2/ Combined with Message tool

3/ Workflow configuration -> Cancel Running on Error

 

Jonny_0-1622739623046.png

 

For the second question, put a filter at the end of your workflow looking for the value you want, and an output tool on the TRUE.  

Example:

Jonny_2-1622739894615.png

 

hope it helps!

 

cheers!

 

Labels