- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2024 04:40 AM
Hi Team,
How can we set up the Incident Priority created by Inbound actions.
Example:
email body contains Critical set to Priority 1- Critical
email body contains Warning set to Priority 2- High
email body contains Info set to Priority 4 - Lower
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2024 06:09 AM - edited 02-09-2024 06:11 AM
Hi @Xhare
try below inbound script
if(email.body_text.indexOf('Critical')!=-1){
current.priority='<choice value of priority 1 - critical>';
}else if(email.body_text.indexOf('Warning')!=-1){
current.priority = '<choicevalueof priority 2 - High>';
}
else if(email.body_text.indexOf('Info')!=-1){
current.priority ='<choicevalueof priority 4 - Low>';
}
current.insert();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2024 04:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2024 06:09 AM - edited 02-09-2024 06:11 AM
Hi @Xhare
try below inbound script
if(email.body_text.indexOf('Critical')!=-1){
current.priority='<choice value of priority 1 - critical>';
}else if(email.body_text.indexOf('Warning')!=-1){
current.priority = '<choicevalueof priority 2 - High>';
}
else if(email.body_text.indexOf('Info')!=-1){
current.priority ='<choicevalueof priority 4 - Low>';
}
current.insert();
