I have to local variables as input
1. List of dictionary : [ [ id:1,value:"abc" ] , [ id:2,value:"bbb" ] , [ id:4,value:"ccc" ] ]
2. List of integers: [1,4]
I want to create 3rd local variable (List of values) by selection value from dictionary where id is present in the List of integers
example :
result -> List of values : [ "abc","ccc" ]
Discussion posts and replies are publicly visible
Hi Vijaykumar,
Try the below code,
I would suggest you to go over the Appian functions which I have mentioned in the snippet
a!localVariables( local!list: { { id: 1, value: "abc" }, { id: 2, value: "bbb" }, { id: 4, value: "ccc" } }, local!index: { 1, 4 }, index( local!list.value, wherecontains(local!index,tointeger(local!list.id)), null ) )