How to disable email notifications by default until users subscribe from their profile?

Umesh Kumar Gup
Tera Contributor

Scenario- On incident form when Reassignment Count is greater than 3 then a notification 'High assigned to count' should be triggered to the manger of assignment group. When this notification is triggered first time,   this notification should be disabled in Notification preferences list of all users so that some @specific users can opt-in/subscribe this notification.

I have created a new notification 'High assigned to count' on incident table.

When to send - condition set to     Reassignment Count is greater than 3.

                                                                      AND                 Reassignment Count changes.

Who will receive- Assignment group.manager

This notification is being triggered when Reassignment Count is greater than 3.

But this notification is being automatically enabled in Notification preferences list of all users.

The actual requirement is- This notification should be disabled in Notification preferences list of all users so that Some specific users can opt-in/subscribe this notification.

wwar1ace

Michael.Fry

pradeepksharma

Slava

dave.slusher

harshvardhansingh

prabhat-awc

1 ACCEPTED SOLUTION

Brian Dailey1
Kilo Sage

Hi Umesh,



You can add a business rule on the Notification Messages table [cmn_notif_message] that will set the message to 'Unsubscribed' automatically when it gets created for your particular notification template.



  1. Create your new business rule on table [cmn_notif_message].
  2. For "When to run", specify on 'Insert'.
  3. Set the Filter Condition to when "Notification Message is ... (choose your desired notification)".
  4. Under "Actions", have it set "Filter To Unsubscribe".


Now whenever a new notification message is generated to a user for this particular message, it will be unsubscribed.




Thanks,


-Brian


View solution in original post

5 REPLIES 5

brianrichards
Tera Guru

I believe all you need to do is to check the 'subscribable' checkbox on the 'Who will receive' section of the notification. This should hide the users/groups fields, by the way, and make this specific notification available to users on their notifications preferences / subscribable settings.



- Brian


Hi Brian,



The message will still be sent, I believe the 'Subscribable' setting just allows users who are not specified in the definition of the Notification to also receive it if they wish.




Thanks,


-Brian


If this is a custom notification it's possible to use this as is and simply not include specific users or groups. This is I believe why checking 'subscribable' actually hides users and groups.



- Brian


Brian Dailey1
Kilo Sage

Hi Umesh,



You can add a business rule on the Notification Messages table [cmn_notif_message] that will set the message to 'Unsubscribed' automatically when it gets created for your particular notification template.



  1. Create your new business rule on table [cmn_notif_message].
  2. For "When to run", specify on 'Insert'.
  3. Set the Filter Condition to when "Notification Message is ... (choose your desired notification)".
  4. Under "Actions", have it set "Filter To Unsubscribe".


Now whenever a new notification message is generated to a user for this particular message, it will be unsubscribed.




Thanks,


-Brian