Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

For each record - Dynamic input's results

monish_chandra
8 - Asteroid

I'm trying to loop through the input records and update the dynamic Input tool for each record and execute it to get the results. Eg: The input is a WHERE condition. Each row needs to be passed to the dynamic input as a Rule and run the Dynamic input to fetch the results for each rule. If I'm not wrong in Alteryx we use Batch Macro or Iterative Macro. How do I implement this?

 

Expected Results

Rule | MbrId | ClaimNbr

1 | 1234 | 4848884

2 | 5884 | 3959992

 

1 REPLY 1
DavidP
17 - Castor
17 - Castor

I don't think you need a batch macro in this case. If you're just changing the WHERE clause the schema for all your records should be the same.

 

Have a look at the example below. The text input tool represents a list of identifiers ([business_ref]) from which I build a simple where clause with a formula tool.

 

 

 

where clause dynamic input1.png

 

The template connection in the Dynamic Input tool contains a simple Select statement.

 

where clause dynamic input2.png

 

I then use the Append Suffix to File?Table Name option, with the output of the workflow shown below.

 

You could of course pick another option and build the entire sql statement in the formula tool if you want.

 

where clause dynamic input3.png

Labels