Get common values from more than two arrays

Hi ,

I have list of arrays coming from foreach, now i want unique elements for the list of arrays.

for example

localvariables(

local!arrays:foreach(

items:{5,6,7},

expresssion:enumerate(fv!item)+1

)

local!arrays

).

form this output,  i want unique elements from the list of arrays.

can anyone help me in this?

intersection is working only for separate arrays stored in each local variable but not for arrays executed in foreach.

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Lead Developer
    in reply to Druva

    Pretty sure it's just a wrapper function that uses union()

    Hi All, My name is Sam and i am new to Appian development and hence might be asking a few rudimentary questions. For this one, i have a query expression that is returning me a year value as {2019, 2019…
    By in Discussions > User Interface
    5 replies

  • Hey Mathieu, that's correct it's just a union function. Using APN_distinct() just gives you a little flexibility to pass only one array rather than multiple if you are dealing with such kind of scenarios.