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

@alabbas 

the syntax to invoke email script is this, share the email script as well here

${mail_script:name}

Notification Email Scripts 

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

Yh that's what I meant and tried that

@alabbas 

then it should be able to invoke

where have you included that email script? share screenshots.

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

Hi @Ankur Bawiskar the screenshot is below. I put it into the HTML body of the email.

alabbas_0-1746115009097.png

 

@alabbas 

share the email script you wrote as well

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