In an Inbound email how can i put condition "subject Contains".

VIKAS MISHRA
Tera Contributor

I have created one inbound email Action which is used to create a new ticket everytime if it gets desired email.

Now i do not know that how can i put one condition in inbound email so that it only create new ticket everytime only when the email's subject contains a string "orange company". Please suggest !.

3 REPLIES 3

Marcin20
Mega Guru

Hi Vikas,

 

It seems that the 'Conditions' section has to be filled. 

 

Best Regards,

Marcin

 

If my answer helped you in any way, please mark this answer as helpful and correct.

SP22
Mega Sage
Mega Sage

If you want to use below script. otherwise you can use oob inbound email action "Update Incident".

if (email.subject.toLowerCase().indexOf("orange company") >= 0)
        gr = new Incident().reopen(gr, email) || gr;

    gr.comments = "reply from: " + email.origemail + "\n\n" + email.body_text;

 

If you want to use condition in inbound email actions.

 

If it is useful, please mark it as complete.

Thanks

SP