-
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
Parsing out an Email Subject in email-to-case using RegEx for EXACT matching
Salesforce's On-Demand Email Handler Service can be further enhanced using a case trigger to better identify the type of case that is being created. Inherently…
How to Implement Sentiment Analysis in Salesforce – A Part of Artificial Intelligence
What is Sentiment Analysis: Sentiment analysis is extremely useful us to gain an overview of the public opinion behind certain topics and feedbacks. Automatically…
4 Major Advantages of Salesforce Einstein Analytics for Sales Managers
For many years, most of the Salesforce users were using reports and dashboards to quickly look up their data, perceive performance, and communicate results. But…
Popular Salesforce Videos
Can Non-IT People Make their Career In Salesforce?
This video focuses on if non-IT people can make a career in Salesforce. Salesforce is a customer relationship management (CRM) platform that offers various roles…
How To Filter Salesforce Reports via URL Parameters - Learn Salesforce Series By Algoworks
How To Filter Salesforce Reports via URL Parameters In this video, the following points will be covered - 1. Introduction Get a brief introduction to…
Tour to the Dreamforce National Park!
What happened at Dreamforce? #ArtificialIntelligence was a consistent theme, a lot more about Commerce, about Customer 360, etc Missed Dreamforce? Then, take a tour of…