I'm fairly new to development in BC. I'm attempting to create a report that will loop through open invoices that are 15 or more days past due then send individual emails to the customer with a PDF attachment of the original invoice. I am needing to use a different document layout for these emails from the normal one used for S. Invoices. I want to programmatically change the email body document layout for this process. I am able to use OnAfterGetRecord trigger to hook into Sales Invoice Header SendRecords procedure and emails are sent but this doesn't seem to be the right path (or maybe it is). Any help is appreciated.