How to automatic set notifications unsubscribed in notification preference?

bbf3562
Kilo Guru

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,

find_real_file.png

Then After 4 new notifications add which I do not want to automatic subscribe it,

find_real_file.png

Here is a business rule I created that I was trying to prevent these 4 new notifications from doing default subscribed it,

find_real_file.png

find_real_file.png

7 REPLIES 7

sachin_namjoshi
Kilo Patron
Kilo Patron

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

I just tried your suggestion and it still doesn't work. Here is what I did,

find_real_file.png

find_real_file.png

I create this BR first and then import update set of 4 notifications. The BR doesn't trigger at all and it still subscribe as default. Here one of notification,

 find_real_file.png

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

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?