- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 07:03 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 07:13 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 07:13 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2023 05:06 AM
Hello @AshishKM
Is it possible in Email Routing Rule?
When i wrote this code it wont work properly in Email Routing rule.