- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2015 09:10 AM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2015 09:15 PM
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2015 09:15 PM
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-29-2015 04:31 AM
Thank you Deepak, great info and advice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-29-2015 04:53 AM
Kindly mark answer as correct / helpful and close the thread if you dont have follow up questions