cancel
Showing results for 
Search instead for 
Did you mean: 

How to get only one of two items returned

swright
New Contributor III

In a mapper snap, my current expression is:
$[‘env:Envelope’][‘env:Body’][‘ns0:uploadFileToUcmResponse’].result[‘$’]

I only want the second value “123109” returned as a string. How can I do this? Thanks!

image

10 REPLIES 10

skatpally
Former Employee

One more way of doing is use a Group By Snap and use the below Expression.

jsonPath($, “$group[?(value[‘env:Envelope’][‘env:Body’][‘ns0:uploadFileToUcmResponse’].result[‘$’]==125044)]”)

sample_2020_10_29.slp (8.9 KB)