How to get the users added in TO and CC in email client template.

Vihar2
Tera Contributor

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?

 

Vihar2_0-1716446430477.png

 

Thanks,

Vihar

 

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Vihar2 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar 

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?

@Vihar2 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader