on 08-14-2019 9:06 PM
Hi
is there any way to sort incoming XML messages child node in CPI . We can write groovy script or some other way .
based on start date we need to sort the incoming message.sort-xml1.png(20.1 kB)
Hi,
You can achieve this in a groovy or javascript. In javascript, with your object you can do that:
oMessage.arrList.sort( (a,b) => { return (a.StartDate < b.StartDate) ? 1 : -1 ; } );
I'm pretty sure that in groovy is similar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.