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

Manoj Kumar16
Giga Guru

Write it in the script in a if condition. Keep the condition field empty


i have written this in script:



if(email.body_text.indexOf("Certified")>-1)


  {


  current.u_status=email.body.status;


  }



Sending this from my personal id:



status:certified



Note:u_status is type of choice


Not able to set the status as Certified


Can you add a log to see if the inbound action is getting processed.


Yes it is processed.



I have checked in System Mailboxes-> Recieved


Have you added current.update() in script?