How to get email body and recipiences using script without depending on Parm1 or Parm2

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2024 12:15 PM
I have about 18-20 email notifications, going out at various scenarios. I wanted to keep a copy of these notifications/email bodies, subject, TO & CC list and date (sys_email table should not be exposed to the teams) in a separate table as soon as the notification executes [could be either before or after email sent].
I have a solution via scheduled script executions, but I don't want to use the scheduled script as it is ont instant.
Requirements:
I would like to prepare a script so that it can be included in all notifications via an email script, that way all emails can be copied without any data on Parms (please understand, the Parm and Parm2 will have different sets of data each time.. some times an object, some times a simple text)