Solved
how to remove multiple key from this list of dictionary. I did it like this i want some better solution using remove
a!localVariables(
local!array: cast(
97,
{
{
item: "stapler",
name: "Mike",
countryId: 1
},
{
item: "printer",
name: "Larry",
countryId: 2
},
{
item: "laptop",
name: "Mike",
countryId: 1
},
{
item: "glass",
name: "Mike",
countryId: 3
}
}
),
local!updatedArray: a!forEach(
items: local!array,
expression: remove(fv!item,"item")
),
local!finalArray: a!forEach(
items: local!updatedArray,
expression: remove(fv!item,"name")
),
local!finalArray
)