-
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
No Code Salesforce and WhatsApp Integration
Businesses are increasingly using messaging as their primary channel for customer communication. Each week, more than a billion users connect with a business account using…
Test Classes in Salesforce - Learn All About it Here
Content What is a Test class in Salesforce? What is the need of a Test class in Salesforce? How to write Test class in Salesforce? …
Play Around Salesforce Batch Apex And Schedule Apex
Batch Apex Batch Apex classes are beneficial if the task is something to run large jobs like thousands or millions which is exceeded than normal…
Popular Salesforce Videos
Salesforce Essentials vs Professional
In this video, Bradley Large answers some of the most common questions people have about Salesforce. He gives clear and concise answers to questions like:…
WWE Connector for Salesforce
In this quick video we will show the Workspace Web Edition Connector for Salesforce. The WWE Connector leverage a powerful browser extension to guarantee a…
How Cyntexa Helped Diet Meal And Food Ordering Service Providers Offer Their Users The Ability To Order Online | Salesforce Commerce Cloud
It is important to keep your business at the top with the latest technical advancements. Presenting you a case study showcasing how Cyntexa Helped Diet…