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...
Drawloop Button: Error when a field has no value
Problem:You would like a User to only be able to run a DDP from an Opportunity record if the Type field has a value, otherwise you would like the User to receive an alert stating the Type field must be entered first. Solution:Using JavaScript we will create a custom button...