Notification sent to the group email

dev_K
Tera Contributor

Hello,

 

 

I am looking for a solution to configure a notification in a way that an email is sent to the group mailbox instead of all members of approval group.

 

dev_K_0-1719818323124.png

 

dev_K_1-1719818344589.png

how this can be done?

1 ACCEPTED SOLUTION

In that case, you have to trigger the notification with the help of 'event'.

The event will be triggered by business rule on the sysapproval_approver table and GlideRecord to approval table as get the email address of group and then you will pass the group email in parm1 OR parm2 and then in the notification 'who will receive' check the checkbox for the same.

 

gs.eventQueue('<replace_event_name>', <pass_the_group_email>); 

 

Mark this as Helpful / Accept the Solution if this helps

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.

View solution in original post

14 REPLIES 14

dev_K
Tera Contributor

Indeed it is selected already.

 

My question is, if I have this notification configured for 'Approver' table and if there is approval group that eg. consists of 5 members it means after request submission ( request will be created and therefore 5 notifications will be triggered for the record. So the question is, what would be a solution to send this notification only to the group email instead of alll the members?

In that case, you have to trigger the notification with the help of 'event'.

The event will be triggered by business rule on the sysapproval_approver table and GlideRecord to approval table as get the email address of group and then you will pass the group email in parm1 OR parm2 and then in the notification 'who will receive' check the checkbox for the same.

 

gs.eventQueue('<replace_event_name>', <pass_the_group_email>); 

 

Mark this as Helpful / Accept the Solution if this helps

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.

dev_K
Tera Contributor

Is it OOB solution that approval notifications are sent to each member of the approval group?

@dev_K , The OOB approach will be to simple make the 'include member' false from the group.

The other approaches are either you have to hard code the email address and send, which is not a good practice.

Second is the way that I suggested using 'event' and the manager's email will be dynamically passed to parm1 or parm2.

 

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.

dev_K
Tera Contributor

But the scenario is there is a group approval. Request is approved when one of the group members approves it. And there is a group email added in the group details. So basically what I want is to send email to this group email address instead of each member... That is why solution with the manager's email will not work...