- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2023 10:49 AM
Greetings friends 🙂
The below configuration works great, but it also sends a notification when the Priority is Lowered 😞
Appreciate any guidance you have on how I can prevent it from triggering when Priory is Lowered.
Thank you! 🙂
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2023 06:46 AM
My colleague was able to come up with below logic that works perfectly.
It only triggers when Priority is Raised. (Not Lowered)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2023 11:18 AM
HI @Leon Els ,
I trust you are doing great.
Identify the notification configuration you're currently using. Let's assume it's a Business Rule called "SendNotificationOnChange".
Open the Business Rule and locate the script section where the notification is triggered.
Before the notification code, add an if statement to check the value of the priority field. Here's an example using the GlideRecord API:
if (current.priority != previous.priority) {
// Code to send the notification
}
- Save the modified Business Rule.
Regards,
Riya Verma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2023 01:35 PM
Hi @Riya Verma, thank you SO much for your response.
I am new to ServiceNow, but do not believe there is a business rule for this specific notification with our configuration.
Is there a way to use logic from the email notification in my screenshot above to accomplish our goal?
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2023 06:46 AM
My colleague was able to come up with below logic that works perfectly.
It only triggers when Priority is Raised. (Not Lowered)