Adding users to CC list in notification

sowmyarajaram
Tera Expert

Hello All,

I'm aware how to add a user on CC list in notification and hope that would be global to a table. would it be possble to restict this activity for only one notification?

I have craeted a system property : 

 

find_real_file.png

email script:

 

var tableName = current.getTableName();
if(tableName== 'incident')
{
var emlid = gs.getProperty('outagenotification.cc');
if(emlid){
email.addAddress('cc', emlid);
}
}

for some reason this is not working and i want this to work for a single notification. any help?

 

Sowmya

 

1 ACCEPTED SOLUTION

Ashutosh Munot1
Kilo Patron
Kilo Patron

HI Brother,

 

I will just to create a mail script and then in that mail script add below code:

email.addAddress("cc","email id","user name");


So that it will only for this specific notification where you use this mail script.

Dont do global change, it is not recommended.

 

Thanks,

Ashutosh

View solution in original post

7 REPLIES 7

Shashikant Yada
Tera Guru

What value you are passing under the property?

You can directly create the notification script and add the Users into CC.

Thanks
Shashikant

Hit Helpful or Correct on the impact of response.

 

Value is the user email id. but it is not working. please find the above screen shot

Harish KM
Kilo Patron
Kilo Patron

you can create notification email script like below

email.addAddress("cc","email id","user name");

Regards
Harish

yep, i'm using the above but i do not see the user on the CC list when email sent.

 

Example:

email.addAddress('cc', "abc@efg.com");