I am trying to use a condition of email.subject.contains ("xxxx") on an inboud email action but it doesn't work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2016 12:54 PM
I can get an inbound action to work with email.subject.startsWith("Single - ") but not contains. I am on Fuji release.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2016 07:03 PM
Hi Donna,
You add add the script that Michael provided in the condition field itself of the inbound action. The inbound action will evaluate the script in that field and if it evaluates to true it will run your inbound action. The indexOf() function returns the position where "single -" exists within the subject. if it does not exists, it will return -1.
email.subject.toLowerCase().indexOf("single - ") >= 0
Will evaluate to true and run your inbound action if the email subject contains "single -", or will evaluate to false and skip this inbound action if it does not.
Hope this helps.
-Jose
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2016 07:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2018 07:01 AM
I have used below line in condition field . Include brackets as well
(email.subject == 'Create Incident')
It worked for me .