cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Lookup on an array in the input document

IgnatiusN
New Contributor II

Hello,

I have a incoming JSON document that has cases and array of casesteps inside. I need to do a lookup on the case step code from a table in the database and add additional properties to the casestep. Is there a way to accomplish this? We tried doing SQL Lookup or In Memory lookup but joining with each case step on the code didnโ€™t work. The jsonPath syntax we were using always returned an array of codes and the lookup was failing. Any help is appreciated!

[
{
caseId: 1,
caseDate: โ€œ2017-08-04โ€,
caseSteps: [{
code: โ€œxyzโ€,
value: 10,
primary: null
},
{
code: โ€œabcโ€,
value: 20,
primary: null
},
{
code: โ€œdefโ€,
value: 20,
primary: null
}]
},
{
caseId: 2,
caseDate: โ€œ2017-08-04โ€,
caseSteps: [{
code: โ€œrewโ€,
value: 10,
primary: null
},
{
code: โ€œwbcโ€,
value: 20,
primary: null
},
{
code: โ€œwweโ€,
value: 20,
primary: null
}]
}
]

Thanks

10 REPLIES 10

No, unfortunately, the library has to come from a URL at the moment.