How to get the users added in TO and CC in email client template.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2024 11:44 PM - edited 05-22-2024 11:46 PM
Hi,
I got a requirement to add the users added from the "TO" and "CC" of the email client template to the record string field.
From the image I have to add the users from "TO" and "CC" (marked in yellow) to a string field available on the form after the email is sent.
Is there any table stores this data? How can this be achieved?
Thanks,
Vihar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 12:00 AM
so basically whoever is the recipient and cc should be added to string field on table on which email triggered?
I can think of this way
1) have after insert BR on sys_email table with condition for your table and then pick the recipients and cc, query the table record and update it
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 12:10 AM
Thank you for your reply!
Is it a good practice to insert a BR on sys_email table? will it cause any performance issues?
Apart from BR on sys_email table is there any other way to achieve it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 12:29 AM
no other way
BR on OOB table is not recommended.
I didn't see this as a valid requirement. please discuss with your customer on this
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader