Need to add requestor in CC field in email
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2022 06:48 AM
Hi Everyone,
I have built one catalog item. In this there is a field called "Requestor". Now I have a requirement. I need to tag this requestor field with the CC field in email. Whoever name is showing in requestor they should get the email (as cc) once I have submitted the request. I have already written the script, however it is not fetching the requestor details in CC field.
Attaching some screenshots.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2022 06:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2022 06:58 AM
this should do the trick
email.addAddress("cc", current.variables.requestor.email);
Also make sure you include the mail script in your notification

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2022 07:00 AM
Hi,
In email script image you need to uncomment line 5 where user variable is declared.
This will work only if requestor is reference variable. Convert this variable as reference if it is not already
Thank you,
Palani
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2022 07:11 AM
Hello,
Please us the below:-
email.addAddress("cc", current.variables.requestor.email,current.variables.requestor.name);
And then call the mailscript in the Body HTML of the notification as below:-
${mail_script:TCSAddCC}
Please mark mu answer as correct based on Impact.