How to add cc in email notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 10:09 AM
Hi,
I have a catalog item and variable referring to cmdb_ci . When user is creating service request they will be selecting the asset name form the variable and will submit the request. I want to send an email notification for the user who performed the latest activity in that asset. That particular user should add it in the cc of the email notification. Kindly help me on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 10:14 AM
Hi @Arun91 ,
You have to create a mail script , notification.
In the mail script you will need to query the journal table of the asset record to see who was the person who made the last update on the asset and get his email id.
and to add that user to cc in email you can use :
email.addAddress('cc','abc@gmail.com','Test user');
I hope this helps...
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 11:08 AM
Hi @Arun91 ,
Please refer the below article,
https://www.servicenow.com/community/now-platform-forum/how-to-set-cc-with-email-content/m-p/1025103
Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Swathi Sarang