Please share any images or screenshots, if relevant.
Share all details related to your problem, including any error messages you may have received.
We have email sent auditing turned on. In the audit log the only information logged is the Target (email address being sent to) and Value 1 (which has the template name being used). Is there a way for me to add information to the Account Name or Attribute Name/Attribute Value in the audit log or even to one of the other 3 Value references?
The email is being called by: context.sendEmailNotification(template, emailOptions);
I have seen other topics saying I could create my own audit log entry, but it seems a waste to have the emailSent audit entry appear twice, once with minimal information and once with my added information.
@LarryG
Disable the out of the box audit and create a method similar to sendEmailNotification(template, emailOptions) and add your custom audit logic in it.
You can put it in rule library or any custom Util (if you have created any).
Or,
use context.sendEmailNotification(template, emailOptions) and before calling this method write your audit code.
This audit is used to know who is target and what is the subject and which would be common for any email send from the system , but if you think that Account Name or Attribute Name/Attribute Value should have added then how this can be generalized .
what you think would be Account Name or Attribute Name/Attribute Value in case ?
now if you want something very specific to your usecase , best would be use the custom Audit .