-
Is there any way to perform DML operations from visualforce email templates?
Visualforce email templates allow you to include visualforce components with allowDML="true" but there doesn't appear to be any way to actually use DML. But getting these when trying to implement :-
You can't use data manipulation language (DML) operations in a “getxxx” method in a controller.
You can't use data manipulation language (DML) operations in a constructor method in a controller.
So is there any way to do this?
Log In to reply.
Popular Salesforce Blogs
Salesforce Testing Essentials: Best Practices Simplified
What is a Test Class? A Test class is a set of Apex code written to validate the functionality of Salesforce components, such as classes…
Salesforce Flows | How to Loop on Multi Select Picklist Values in a Flow?
Want to Parse and Loop on the Multi-Select Picklist Values in a Flow? Parsing the Multi-Select Picklist Selected values in a Flow is required where…
Popular Salesforce Videos
How to Set Up a B2B Marketing Analytics Plus App | Salesforce
This video shows marketers how they can create a B2B Marketing Analytics Plus app, such as Marketing Campaign Intelligence or Account-Based Marketing. So to get…
Salesforce Certifications 2022 | Which Certifications You Need & Why You Need Them
If you’re looking to start a Salesforce job this year you’re going to need a Salesforce certification. But where do you start, which certification should…
What benefits Salesforce Email integration provides for my business?
This video puts light on the benefits of Salesforce Email Integration for Business. Every aspect of Email Integration is provided and discussed in detail along…