- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2023 05:29 AM
Hi I am using this to add email address in cc of notification activity
<mail_script>
email.addAddress("cc", 'test@gmail.com' );
</mail_script>
The following are the details of the requester
Requester = ${current.variables.requested_for}
Email Address of Requester = ${current.variables.email_address}
but I want add the cc as ${current.variables.email_address} but that is not working.why?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2023 08:06 AM
this works
<mail_script>
var email = current.variables.email_address.toString();
email.addAddress("cc", email);
</mail_script>
The following are the details of the requester
Requester = ${current.variables.requested_for}
Email Address of Requester = ${current.variables.email_address}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2023 05:43 AM
Hi @Rahul Raja Sami ,
-
Open the workflow that contains the notification activity you want to modify.
-
Click on the notification activity to select it.
-
In the properties panel on the right side of the screen, click on the "Advanced" tab.
-
Scroll down to the "CC List" field and enter the email addresses you want to include in the CC list, separated by commas.
-
Save the changes to the notification activity.
-
Publish the workflow to make the changes effective.
When the notification is sent, the email addresses in the CC list will receive a copy of the notification along with the primary recipient(s).
Note that the ability to modify workflows and notification activities may be restricted based on your ServiceNow role and permissions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2023 05:50 AM
Hi Sandeep,
I doubt that we dont have cc field on Notification activity
please check
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2023 05:54 AM
Hi @Rahul Raja Sami ,
use the following mail script in workflow notification activity message to achieve that:
<html>
<body>
<mail_script>
email.addAddress("cc","test@test.com");
</mail_script>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2023 06:00 AM
this works when we give directly the email address but I want to fetch the mail from the variables. like mentioned above