โ12-13-2020 11:25 PM
Hi ,
Can you please help me to get the objects from the array as below.The LX segment is dynamic in the below example it is having 2 but it will be varying.
This is my Input
[
{
โorder_ediโ: [
โLX|000001โ,
โW01|1|EA||IN|53142262|UP|642470202104||||||||VN|ER3333-03-abcdโ,
โG69|descriptionโ,
โN9|VC|A901โ,
โN9|SZ|64-120โ,
โN9|CH|068-07-04338โ,
โW20|1|0|EAโ,
โLX|000002โ,
โW01|1|EA||IN|53142262|UP|642470202104||||||||VN|ER222-03-efghโ,
โG69|Descriptionโ,
โN9|VC|A301โ,
โN9|SZ|66-120โ,
โN9|CH|068-07-02338โ,
โW20|1|0|EAโ,
]
}
]
I want the output as below.
{
โorder_ediโ: โLX|000001โ,
โW01|1|EA||IN|53142262|UP|642470202104||||||||VN|ER3333-03-abcdโ,
โG69|descriptionโ,
โN9|VC|A901โ,
โN9|SZ|64-120โ,
โN9|CH|068-07-04338โ,
โW20|1|0|EAโ
}
{
โorder_ediโ:
โLX|000002โ,
โW01|1|EA||IN|53142262|UP|642470202104||||||||VN|ER222-03-efghโ,
โG69|Descriptionโ,
โN9|VC|A301โ,
โN9|SZ|66-120โ,
โN9|CH|068-07-02338โ,
โW20|1|0|EAโ
}
โ10-25-2021 01:10 AM
You can make it this way.
SP new pipeline 10_2021_10_25.slp (5.1 KB)