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

you need to call email script in your notification

${mail_script:emailscriptname}

Regards
Harish

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

Hi bro, Sorry to comment on this post. I have query very similar to this I want to add values of email from a Service Catalog variable which is a comma separated list and these could be any email not available on sys_user table.. how to achieve this..? The field is single line text