-
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
Top 10 Salesforce Spring ’19 Release Features
The Salesforce Spring ’19 Release is here, and you’ll now be able to explore the exciting new features and upgrades of the newest release.…
Comparison Between Salesforce B2B and B2C Commerce Cloud Solutions
The proliferation of the internet and smart devices has forced us to enter the digital-first economy, where online trade has become the lifeline for most…
Business Hours And Holidays In Salesforce
Business Hours Business hours define the hours your team is available to support your customers and Holidays allow you to select when your customer support…
Popular Salesforce Videos
Welcome to Email Template Builder | Salesforce Learning
In this video, you will learn how to create email templates with Email Template Builder and Email Content Builder. If you have any doubts or…
Learn About Types of Sandboxes in Salesforce
A sandbox is a copy of your organization in a separate environment that you can use for a variety of purposes, such as testing and training.…
What are sObjects in Salesforce? | Salesforce Development Tutorials
In this video Shrey not only teaches you sObjects but also demonstrates the use of sObjects in Apex. He explained about the sObjects and how…