And then I have variable c as List of string with data [“1690”]
I want to ask how to filter variable b using feel expression with progressStatusId that contain in list c
After filtered b variable will only remain
@hassang I need your help one more time for example if data had filtered to
[
{
“progressStatusId”: 1690,
“progressStatusDesc”: “B”,
“progressStatusValue”: “C”,
“productLevel1”: “MNHD”,
“productLevel2”: “MNH1”,
“productLevel3”: "MNH10059 ",
“productLevel1Desc”: “G”,
“productLevel2Desc”: “S”,
“productLevel3Desc”: “W”
}
]
How can I access this and get value of progressStatusValue
When then x it become
[null, null, {productLevel2=MNH1, progressStatusValue=C, progressStatusDesc=B, productLevel3=MNH10059 , productLevel1=MNHD, progressStatusId=1690, productLevel3Desc=W, productLevel2Desc=S, productLevel1Desc=G}, null, null, null, null, null, null, null]
I tried and get progressStatusValue = C with this code
(for x in b, y in c return if (x.progressStatusId = number(y)) then x.progressStatusValue else null)[item != null][3]
With (for x in b, y in c return if (x.progressStatusId = number(y)) then x.progressStatusValue else null)[item != null] it always return as arrays
Is there a way to get progressStatusValue but I don’t need to define index like code above