Josh.Brown | 2023-06-08 15:50:20 UTC | #1
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".
SimonBrown | 2023-06-09 15:26:25 UTC | #2
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
system | 2023-07-10 15:26:46 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 20329