-
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 About Salesforce Deployment Using Change Set
Salesforce Deployment Using Change Set To handle alter set arrangement from sandbox to generation, take after the informational recorded below. By utilizing alter sets we…
Learn How to Access Page Layout in Salesforce | Help Guide
In Salesforce, Page Layout is used to customize the page of an object record. It controls the layout of an object. It defines which fields…
5 Benefits of Salesforce Lightning App Development
In the ever-evolving landscape of business technology, staying ahead is not just an advantage—it's a necessity. Salesforce Lightning App Development has emerged as a pivotal…
Popular Salesforce Videos
Custom Portfolio in Salesforce | Mini Project | Salesforce Tutorials
In this video, we will create a custom portfolio in Salesforce. We will create a custom community in Salesforce and customize it to create the…
How Is Salesforce Overcoming the Rise In Generative AI?
Discover how Salesforce is harnessing the power of Generative AI to revolutionize customer experiences, streamline processes, and innovate like never before. In this extract discover…
Highlights of the Salesforce Winter '22 Release for Nonprofits
The video includes both Winter ‘22 Salesforce Platform updates and Nonprofit Cloud tools. Chapters: 0:00 General Salesforce.com Platform Updates 8:13 Salesforce.com Release for Fundraising and…