[
{
"CustomerID": "123123",
"CustomerName": "Aerosmith"
},
{
"CustomerID": "123123",
"CustomerName": "Aerosmith"
},
{
"CustomerID": "999999",
"CustomerName": "AC/DC"
},
]CustomerID, whether or not the Customer Name is the same.unique helper function, but this only works on a simple array of strings or numbers. At first I tried to store an array of unique customer IDs, which is easy to do, but this did not help me.myarray), and created from it an object with a series of attributes, each attribute being the ID of a different customer. I used the following code:{
{{#eachJoin memory.myarray}}
"{{this.CustomerID}}" : {{this}}
{{/eachJoin}}
}[
{
"123123" : {
"CustomerID": "123123",
"CustomerName": "Aerosmith6"
},
"999999" : {
"CustomerID": "999999",
"CustomerName": "AC/DC"
}
}
][
{{#eachJoin memory.myarray2}}
{{this}}
{{/eachJoin}}
]You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 59 | |
| 55 | |
| 51 | |
| 36 | |
| 29 | |
| 24 | |
| 23 | |
| 22 | |
| 22 | |
| 19 |