06-26-2023 02:27 AM
Hello Experts,
I have an implementation where I have 2 set of data shown below:
Output1:
Output2
Here, Output1 comes with ‘single entry’ of Z1WSCOPE in an object. And Output2 comes with ‘multiple entries’ in an array.
What I am trying to achieve is:
Thanks in Advance
06-26-2023 05:01 AM
Hi @aditya.gupta41 ,
Try this expression:
$Doc.length == 1 ? $Doc[0].keys().join(“|”) : $Doc.map(x => x.keys().join(“|”)).join(“;”)
O/p window:
Sample pipeline:
Test_Expression_2023_06_26.slp (3.6 KB)
Let us know if it works 🙂