-
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
![](https://images.forcetalks.com/wp-content/uploads/2022/10/18104510/sa_1666089826How%20Salesforce%20mobile%20app%20can%20help%20your%20business-1024x576.png)
How Salesforce Mobile App Can Help Your Business?
The traffic on the internet has been constantly shifting from desktops to mobile phones, and approximately 70% of active users on the internet are from…
![](https://images.forcetalks.com/wp-content/uploads/2024/07/12063436/sa_1720766066New225-1024x576.jpg)
Role of Salesforce Implementation Partners in Data Migration
In today’s fast-paced business world, Salesforce stands out as a key player in customer relationship management and sales automation. Utilizing Salesforce Implementation Services can significantly…
![Driving Business Agility through On Demand Salesforce Services](https://images.forcetalks.com/wp-content/uploads/2018/08/28174845/FT-Banners-5-min.jpg)
Driving Business Agility through On Demand Salesforce Services
When successful businesses are constantly changing with mergers, acquisitions, launches, and other events discover how an On Demand Salesforce service model can meet your fluctuating business…
Popular Salesforce Videos
Salesforce - Sage ERP Integration
Salesforce Integration with Sage ERP (SageX3 / Sage100 / Sage300) delivers seamless, real-time, bi-directional integration that plays a pivotal role in unlocking the potential of…
Web to Case Functionality in Salesforce | All You Need to Know
This video discusses the functionality of Web to Case in Salesforce, which allows website users to submit inquiries or information that can be converted into…
Salesforce Admin 201 Training for Beginners: Different Types of Relationship in Salesforce
The Salesforce Certified Administrator program is designed for individuals who have experience as a Salesforce administrator. The program encompasses the breadth of applications, the features…