- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2016 09:07 AM
I'm working on an inbound action where ideally it is searching the body of the email for a certain string as part of the condition. I've created the conditions as seen below, but for some reason the IA is getting skipped over. I'm wondering if maybe it's not possible to do the way I'm trying. Has anyone had any luck with this?
Conditions
(email.recipients.toLowerCase().indexOf("techadmin@xyz.com") > -1) &&
(email.body.toLowerCase().indexOf("newrepcomm") > -1)
The inbound emails will all have the following line in the body, this is what I'm looking for in the condition.
"There is a new NewRepComm Set Up case (123456789) for user..."
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2016 09:39 AM
In your conditions field try this
(email.recipients.toLowerCase().indexOf("techadmin@xyz.com") > -1) && (email.body_text.toLowerCase().indexOf("newrepcomm") > -1)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2016 09:39 AM
In your conditions field try this
(email.recipients.toLowerCase().indexOf("techadmin@xyz.com") > -1) && (email.body_text.toLowerCase().indexOf("newrepcomm") > -1)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2016 09:49 AM
Thanks Abhinay! I just tested that and it worked perfectly!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2016 10:16 AM
Glad you go this working.