Forum Discussion
As you suggested I created a mapper like this
Output looks like this
Is it possible to get the output in form of single json document like
{
"customerMappings": {
"1": "A",
"2":"B"
}
}
Hello akarsh,
You can try with grouping all of the documents into a single array, then using reduce to combine them in one object.
Please note that if you have duplicate keys through the documents, they will overwrite.
Please refer to the attached pipeline and let me know if this helps you.
Regards,
Aleksandar.
Hi @amit.saroha - I think you are looking for the && (AND) operator. For a full list of operators, take a look at the first table in the Understanding Expressions in SnapLogic documentation
- jcornelius4 years agoNew Contributor III
be aware of the other conditions where the are all equal (true or false), ie 00-11 conditions for 2 inputs
ie do you want both routes to be taken when A B and B C…may need to use “First Match”