I have data in the following manner -
GroupId,ProductId
1,120
1,123
2,220
2,222
I need to use that data above and pass it on to another workflow - Process Products. In this workflow, the input data is a SQL Query and the Product Id values from above go as part of the IN clause. Here is how the query looks like -
select productid, name
from products
where productid in (120,123);
Here is what I have done so far. I replaced the 'Input Data' with 'Dynamic Input'. I pulled in 'Input Data' tool with column ProductId having 2 row values and connected to 'Dynamic Input' and having the 'Update Where Clause'. This works as a stand-alone. Now I don't know how to go about connecting my original data and looping through whole groups. I pursued through multiple articles on batch macros and iterative macros but it's very confusing and not the same use case that I have. Any help?