how can i check particular string in body of email inbound email action

Pradeep J
Kilo Guru

Hi All,

I am using the below line to check the particular word is present in the body of email.

email.body.contain("Certified")

if Certified word is present then i need to update the status as Certified.

Am I using the correct keywords ? If not please help

Thanks

Pradeep D J

18 REPLIES 18

current.update() is necessary to update?


Yes.


Manoj Kumar16
Giga Guru

Ok if you are getting the Status as certified then why dont you hardcode it ?



You want to set the status as "Certified" right ? if yes then you can set



current.u_status="Certified";



inside the if condition


I want to set that according to condition.



If condition sets true then it works.



But here it works even condition fails