email routing rule

Dasarathi Maha1
Tera Contributor

In email routing rule if the subject is xyz then it will assign to 'A' assignment group other wise it will assign to 'B' assignment group. How i will put the condition.

 

Thanks

 

1 ACCEPTED SOLUTION

AshishKM
Kilo Patron
Kilo Patron

Hi @Dasarathi Maha1 ,

Are you trying to update inbound email action for incident table or some other table. If yes, you can put the condition on "email.subject". Try it and share the code part if its not working for you.

 

if(email.subject == 'xyz'){
current.assignement_group = "sys_id of group A";
} else {
current.assignement_group = "sys_id of group B";
}

 

-Thanks,

AshishKMishra


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

View solution in original post

2 REPLIES 2

AshishKM
Kilo Patron
Kilo Patron

Hi @Dasarathi Maha1 ,

Are you trying to update inbound email action for incident table or some other table. If yes, you can put the condition on "email.subject". Try it and share the code part if its not working for you.

 

if(email.subject == 'xyz'){
current.assignement_group = "sys_id of group A";
} else {
current.assignement_group = "sys_id of group B";
}

 

-Thanks,

AshishKMishra


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

Hello @AshishKM 

Is it possible in Email Routing Rule?

When i wrote this code it wont work properly in Email Routing rule.