Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have the below flow, and I would like the userGroup to be a loop as well according to data that's coming from another database lookup, Can you point me to the best way to approach this, I'm not able to do it right now.
Your help is appreciated.
Good morning,
Can you guys help with this.
Thanks!
Can anyone please help with this?
Thank you!
I followed the example in here: https://community.talend.com/t5/How-Tos-and-Best-Practices/prepare-XML-with-multiple-loop-in-same-le...
But the problem is when it gets to the lookup part it won't bring all the user groups, it will bring only one row.
here is the flow:
here is the tCMLMap_3:
Here is the tMap_1
Here is the expression to replace the string:
row10.userGroup==null?
row9.payload.replaceAll("<UserGroups>WIRECODE_PLACEHOLDER</UserGroups>", "")
:row9.payload.replaceAll("<UserGroups>WIRECODE_PLACEHOLDER</UserGroups>", row10.userGroup)
Here is tTeradataInput_2:
Here is the resulted user node in the XML:
Here is the expected user groups:
is there something wrong with the way I do the join?
Your help appreciated!