Sending Notification under to a specific user under certain conditions

alabbas
Tera Contributor

Hi Community,

 

I have a requirement where a manager would like to be BCc'd into every email that goes to their team from the system.

 

The notifications are generic ie. Send an email to the assigned to when they have been assigned a request. The manager only wants to see their teams notifications.

 

How would I be able to set an additional criteria that the manager gets BCc'd into the emails when their team is the team selected without effecting the original notification criteria.

 

I have tried using email scripts but I can't seem to set conditions on when to send rather it sends regardless of the team assigned. I have also tried putting an if statement in the advanced view of the notification, but not working.

 

Any help is appreciated!

1 ACCEPTED SOLUTION

@alabbas 

since gbs is reference field, you should compare display value

current.gbs.getDisplayValue() == 'DPS'

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

20 REPLIES 20

BrianProvencher
Giga Guru

Can you share a screenshot of the notification you're trying to edit? You should be able to add conditions and filters to the notification.

Hi @BrianProvencher @Ankur Bawiskar  please see below.

@alabbas 

you cannot include BCC via advanced condition

you will have to use email script only

in your email script you can have logic whether to include BCC or not and use this syntax

email.addAddress("BCC");

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

I tried that and then put ${mailscript:(name of mail script} but it doesnt call it or the if statement isnt working