Alteryx Designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
It's the most wonderful time of the year - Santalytics 2020 is here! This year, Santa's workshop needs the help of the Alteryx Community to help get back on track, so head over to the Group Hub for all the info to get started!
SOLVED

For each record - Dynamic input's results

Highlighted
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

 

Highlighted
16 - Nebula
16 - Nebula

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