-
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
Ultimate Guide to Sales Quotes in Salesforce in 2024
Automating sales quotes in Salesforce is usually put on the back burner by sales reps. But will a change of this perspective influence the sales…
Salesforce for Non-Profit - A Guide
Salesforce is undoubtedly a very powerful platform. Salesforce CRM implementation has spread across all the sectors of the market have seen witnessed and experienced its…
Custom Lookup Field in Visualforce Page | Salesforce Developer Guide
We all know about the Standard Lookup functionality, it's provided by Salesforce. The standard Lookup field gives a dialog box that supports a little quantity…
Popular Salesforce Videos
Features of Salesforce Industries (Vlocity)
There are many features of Salesforce Industries that make it a one-stop solution for businesses. Salesforce Industries or Vlocity offers Omnichannel processes with lightning Web,…
101 Guide to IBM Watson and Salesforce Einstein
In March 2017, IBM and Salesforce announced a global strategic partnership to seamlessly connect predictive insights found in unstructured data from IBM Watson APIs to…
Add Styles and Data to a Salesforce Lightning Web Component
After completing this unit, you’ll be able to: Use CSS and Lightning Design System with a component. Get data from a Salesforce org. Deploy your…