Appian Community and Appian Academy are being upgraded. From July 24–August 3, the Appian Community will be in read-only mode. During this time, the site will be read-only and user registration will be disabled. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

Need to filter out few elements from an array of dictionary

Let us say I have array of dictionary    {{id:1,name:"Faisal",department:"EEE"},{id:2,name:"Hasan",department:"E&E"},
{id:3,name:"Faridi",department:"E&C"}}

and I want  to return id and name only based on department="EEE"

How can this be achieved using functions?

I have tried the below but not able to get the result and from this query I am able to return only one field.

a!localVariables(

local!employees:{
{{id:1,name:"Faisal",department:"EEE"},{id:2,name:"Hasan",department:"E&E"},
{id:3,name:"Faridi",department:"E&C"}}
},
a!forEach(
items: local!employees,
expression:if(fv!item.department="EEE",fv!item.name,{})
)
)

  Discussion posts and replies are publicly visible