-
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
Learn All About the Batch Apex in 2023
The main purpose of using Batch Apex is used to process a large amount of data without exceeding governor limits. It is a type of…
New Summer '22 Salesforce Flow Updates
Numerous areas of Salesforce that formerly needed specialized programmers no longer necessitate the hiring of developers. Salesforce Flow Builder is now the key tool for…
LWC Interview Question – Part 2
Certainly! Here's a mix of Lightning Web Component (LWC) interview questions suitable for both freshers and experienced developers: What are the different types of data…
Popular Salesforce Videos
How Salesforce Industries can Help Organizations to Save Millions?
Salesforce Industries i.e Vlocity empowers businesses with powerful platforms to boost collaboration and makes it easy to deliver great customer experiences. It provides tailored solutions…
Salesforce Online Training Videos For Beginners | Campaign Management
Learn all about the Salesforce campaign management in this video. Watch and learn. If you have any doubts or questions, please let us know in…
What is a Salesforce Admin?
Salesforce administrators are the gatekeepers of their employer's sales and marketing data. They create each user account and determine the proper level of access based…