Forum Discussion
j_angelevski
5 years agoContributor III
@acesario , you can also just add [0]
after @viktor_n’s expression.
$Records.map(record => record.Award.map((x, index) => record.Award.slice(0, index + 1).filter(y => y == x).length))[0]
And if you really need the “0” you can try and add .map(val => "0" + val)
So full expression is: $Records.map(record => record.Award.map((x, index) => record.Award.slice(0, index + 1).filter(y => y == x).length).map(val => "0" + val))[0]
Can you provide some more details? Are you building a query in a SQL Execute snap? If you could export and attach your pipeline, that would help us understand what you’re trying to achieve.
- MadhaviKarri6 years agoNew Contributor
Hi @tstack
I have got the issue resolved. This is happening since the APP GAteway firewall is blocking SQL data as in seems like SQL injection.I have handled the data by passing condition as array elements and have appended AND with in snaplogic.
Related Content
- 4 months ago
- 10 months ago
- 3 years ago
- 5 years ago