Hi Team,
I have list of dict. like:
{{{customername: "Hardy", name: "S1", region: "Asia"}}, {{customername: "Len",name: "SRD", region: "NA"}}, {{customername: "MAdusa", name: "Line 9", region: "Australia"}}}
Now I want to store only name values in a local variable.
I need result like, '
local!variable1 = { "S1","SRD","Line 9" }
how to do this with loop ?
Because list of dict. can be more or less or empty so need code which can handle if the list comes empty(can return null), I will be using this code in expression rule
Discussion posts and replies are publicly visible
try using index(array,"name",{})
As always I'll point out that while index() can be used to get dictionary properties as well as array indexes, for code clarity and readability i recommend always using property() to access properties, and reserving the use of index() for indexing (i.e. positional lookups within an array).