Salesforce developers commonly inquire about the ability to trigger a DDP using custom Apex code. Is this possible? Yes! Below I’ll walk you through the basic setup and provide you with sample code. This example will generate an Invoice template and delivery via email when an Opportunity record is edited...