- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 10:43 AM
Hello!
I am needing to change a variable in an incident based on the keywords of High or significant within the body of an email. If the email contains Severe then I would want to have the Priority changed to 1-High and if the body contains Warning I would want the Priority to be set to 2-Significant.
Any help with this would be great!
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 01:14 PM
So I was able to get Critical to work but not what I needed for Warning.
var emailBody = email.body;
if (emailBody.indexOf ("Critical") != -1) {
current.impact = 1;
current.urgency = 1;
} else if (emailBody.indexOf ("Warning") != -1) {
current.impact = 1;
current.urgency = 2;
}
current.insert();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 01:18 PM
Hi @Justin Dirks1 ,
What's status with "Warning" condition, any finding.
-Thanks,
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-15-2023 01:21 PM
I was able to get it to work. I appreciate all of your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 01:43 PM - edited 11-15-2023 02:25 PM
@Justin Dirks1, I would highly appreciated if you accept my solution and mark helpful which gives us the credit and encourage more towards helping all community members.
You can mark more than one answer as accepted solution.
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution