Hello Alteryx Community,
It has been a long time since I posted. I'm back at batch macros and am pretty rusty on some of the less intuitive parts so I am turning here. I'm setting up a batch macro where I am running a Find and Replace for multiple different fields. Section1 is in both inputs and pulls in field Section1x, then Section2 is in both inputs and pulls in field Section2x, etc. I plan on doing this for dozens of fields at once. I overwrote the backend XML code pretty well but when I plug in the Text Input to feed the field names to run it on, the outputs get Unioned. E.g. I'll have 5 records in the input, but since I run the Find and Replace for three different fields, it runs the workflow thrice and yields 15 total records in the output. I think the solution might be the Group By option, but that appears not to be deduping the outputs (I'll also take suggestions to any good Group By tutorial refreshers for batch macros because again, I am rusty). Here's a screenshot of what the current output is vs. what I would like the output to be. I feel like this is something of a general question but I just can't figure it out for my particular workflow.


Also, subsequently off of that, does anyone know how to change it so I can just select the fields I want to run through the macro as a list on the macro interface? That would replace manually typing out the field names into the Text Input like I currently do. I think this would involve changing the Control Parameter to a List Box, but playing around with it isn't working. I've done it before as you see in a previous macro below, but unsure how to replicate in this scenario. YXZP file attached.

Thank you,
KPR