Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

"Contains" option not working on workflow If Condition

galavodasal
Giga Expert

I'm configuring an If Condition within a workflow where the conditions are: Price is or is less than XXXX && the Requested_for.title contains "XXXXX", or "XXXXXXX"

However, the contains option isn't working. If I enter contains "director", "vp", "manager", etc.. it doesn't work.

If I change contains to is, and enter the exact title, the If Condition works fine, and the workflow works as intended.

Is there any reason the contains option isn't working?

1 ACCEPTED SOLUTION

Deepak Ingale1
Mega Sage

contains will follow the lowercase and uppercase , it is case sensitive.


so when you try to expect 'title' contains 'vp' for person having a actual title as 'Senior VP', that wont work.



better you can have a condition as scripted



e.g.



if(current.requested_for.title.toLowerCase().indexOf('vp') >= 0)


View solution in original post

3 REPLIES 3

Deepak Ingale1
Mega Sage

contains will follow the lowercase and uppercase , it is case sensitive.


so when you try to expect 'title' contains 'vp' for person having a actual title as 'Senior VP', that wont work.



better you can have a condition as scripted



e.g.



if(current.requested_for.title.toLowerCase().indexOf('vp') >= 0)


Thank you Deepak, great info and advice.


Kindly mark answer as correct / helpful and close the thread if you dont have follow up questions