-
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
Enhancing Salesforce Development with SFDX: Key Strategies and Techniques
In the landscape of Salesforce development, Salesforce DX (SFDX) is a game-changer. More than just a tool, SFDX revolutionizes how developers create, test, and deploy…
Learning All About Process Builder in Salesforce
Cycle Builder Salesforce is in a general sense a robotized gadget that licenses you to control the task for exercises or survey the models for…
Introducing Screen Flow in Salesforce
In this Blog, we will learn about Screen Flows. As we all know, flow is an automation tool provided by Salesforce which can be used…
Popular Salesforce Videos
Signing Up for a Free Salesforce Account
From Salesforce instructor, Become a Salesforce Expert. Sign up for a free Salesforce account and learn more about this technology. Mike Wheeler - http://mikewheelermedia.com
Salesforce AppExchange Pricing Models
Salesforce AppExchange offers a wide range of solutions and applications designed to enhance and extend the functionality of Salesforce. However, understanding the pricing models can…
3 Tips on How To Deliver a Successful Product Launch | Salesforce on Salesforce
Salesforce defines a product launch as announcing a new offering to the public. Launches are an opportunity to tell a compelling story about your product,…