Indexing Email Body for Inbound Action

bradfournier
Kilo Expert

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..."

1 ACCEPTED SOLUTION

In your conditions field try this



(email.recipients.toLowerCase().indexOf("techadmin@xyz.com") > -1) &&   (email.body_text.toLowerCase().indexOf("newrepcomm") > -1)


View solution in original post

7 REPLIES 7

In your conditions field try this



(email.recipients.toLowerCase().indexOf("techadmin@xyz.com") > -1) &&   (email.body_text.toLowerCase().indexOf("newrepcomm") > -1)


Thanks Abhinay! I just tested that and it worked perfectly!


Abhinay Erra
Giga Sage

Glad you go this working.