How to automatic set notifications unsubscribed in notification preference?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2019 07:33 AM
Hi guys,
I create 4 new notifications(ICFR (SOX) Classification Elevated, ICFR (SOX) Classification Lowered, SOC Classification Elevated, and SOC Classification Lowered), I notice it automatic added them in Notification Preferences as default subscribe that I do not want to. I want these 4 notifications to be default unsubscribe to allow users to manually subscribe if they want to. So I researched to find solution for that and apparently they said to use business rule for that. So I create a business rule to trigger from specific 4 notification to make it to unsubcribe. I imported this business rule first and then import 4 new notification but it seem that the business rule doesn't trigger at all and notification preference still automatic turn these 4 as default subscribed. What did I do wrong?
Here is screenshot of notification preference before add 4 new notifications,
Then After 4 new notifications add which I do not want to automatic subscribe it,
Here is a business rule I created that I was trying to prevent these 4 new notifications from doing default subscribed it,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2019 11:06 AM
You should create business rule on cmn_notif_message table in GLOBAL scope.
Also, run AFTER business rule on both insert, update.Can you make order of business rule to 999?
Please add some log statements to debug if this business rule is getting triggered or not
I am using below fix script in my instance to disable my notification preferences
var pref = new GlideRecord('cmn_notif_message');
pref.addEncodedQuery('user.active=true^user.vip=true^notification.active=true^notificationNOT LIKEappro');
pref.query();
while(pref.next()){
pref.notification_filter = "c1bfa4040a0a0b8b001eeb0f3f5ee961";
pref.update();
}
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2019 11:27 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2019 11:30 AM
Business rules won't rule on a manual import of XML.
When importing via Data Sources and Transform map, business rules only run when the 'Run business rules' flag is checked on the Transform Map.
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2019 11:38 AM
So what does BR trigger on? I create a BR in instance. The only update set xml import are the notifications. Does it require to create a notifications in order for BR to trigger? If yes then how will it work if need to use update set to promote to next instance all the way to production?