Finding if a Email.ACDSkill is part of a String Collection

What would be the recommended way to identify if a skill is part of a list (in this case, a String Collection)?
I'm used to using Contains, or InList values in other languages, but I can't seem to figure this one out in Architect.

Would I use a FindFirst?
I've tried something like this:

FindFirst(Flow.SkillStripping,ToString(Email.ACDSkills))
Flow.SkillStripping => String Collection which contains a list of skills

However, this always returns "-1".

Hi

When I do these I use the FindFirst(MyCollectionName, ValueToFind)
I usually wrap in an if expression though and use that on a Decision or Switch to give me the Yes/No flow;

if(FindFirst(CollectionName,ValueToFind) == -1, false, true)

I think the string match is case sensitive? so check that is not issue

Simon

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.