-
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
What are Campaigns in Salesforce in 2023?
One of the most important features of Salesforce is its Campaign feature, which allows businesses to plan, execute, and track marketing campaigns. A campaign in…
Salesforce CPQ – Top 9 Benefits – Prepare Accurate Quotes in Moments not Months!
Configure Price Quote (CPQ) is a salesforce cloud toolkit available in Salesforce that allows your business to provide your customer with accurate sales quotes and…
Popular Salesforce Videos
What are Salesforce Developer Edition?
Salesforce Developer Account is actually a free of cost account. If you wanted to explore and if you wanted to do the configuration practices or…
What are Fields in Salesforce? | How to create a Field in Salesforce?
In this video, Shrey is not only teaching but also demonstrating to you "What are Fields in Salesforce?" You will be learning: What are the…
Salesforce Object Search Language: What is SOSL and when to use SOSL?
When to Use SOSL? Use SOSL when you don’t know which object or field the data resides in, and you want to: Retrieve data for…