-
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 6 Benefits of Salesforce QuickBooks Integration
QuickBooks is an essential accounting application that many businesses trust today. It allows accounting professionals to record transactions with ease and accuracy. Whether you're billing…
Why Use Second-Generation Packages in Salesforce?
Do you know about Second-Generation packages? Max Shkrob, Salesforce Developer at Twistellar, gathered all the features and the main differences between 1GP and 2GP. Happy…
Salesforce Experience Cloud: A Comprehensive Guide
In order to maintain a competitive advantage, businesses must continually adapt to the ever-changing needs of their customers. To meet these customer demands and stay…
Popular Salesforce Videos
Business Days in Salesforce CRM Analytics (Tableau CRM)
It's common for businesses to want to take business days into account when showing data on a dashboard in CRM Analytics (formerly Tableau CRM) to…
Segments of Salesforce Data Cloud
In this extract, Shrey and Vishwajeet break down the different segments of the Salesforce Data Cloud and explain how they can help businesses of all…
Is Generative AI Is The New Future Of Salesforce?
Every industry, whether IT, Finance, or health, is moving towards AI? There has been a lot of talk about Generative AI and how it can…