How to add a variable from variable set to cc of email notification

priya lakshmi
Tera Contributor

I have a requirement where i need to get the value of a variable in variable set of service catalog and add the value to cc of the email notification. the value is entered to the variable in record producer.

So, basically the "cc" of the notification should have the email id entered via record producer form in the field "personal email" this is a variable which is part of a variable set 

Can anyone have solution on how to configure this

Thankyou for all your help in advance

6 REPLIES 6

Allen Andreas
Administrator
Administrator

Hi,

Please see this article for assistance with MVRS and getting that data in notification:

https://community.servicenow.com/community?id=community_article&sys_id=1a38e4f41bc82010305fea89bd4bc...

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

the document only shows hoe to display it. How to add those variables to cc of notification

Hi,

The point I was getting at is that you need to access those values from the MVRS. The link I gave shows how to access it. Once you've accessed it within the mail script, you can then add it to your CC.

email.addAddress("cc", 'email_address', 'display_name_if_applicable');

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Murthy Ch
Giga Sage

@priya lakshmi 

Get the mrvs each row using getRow();

and use for loop the add the users

Syntax of adding users in cc

email.addAddress("cc",mail,displaynameoftheuser);

Write the above logic in mail script and call it in your Notification using ${mail_sctipt:MailscriptName}

 

Hope it helps

 

Thanks,

Murthy

 

 

Thanks,
Murthy