Difference between trigger.new and trigger.old in salesforce
Trigger.new : Returns a list of the new versions of the sObject records. Note that this sObject list is only available in insert and update triggers, and the records can ....
Trigger.new : Returns a list of the new versions of the sObject records. Note that this sObject list is only available in insert and update triggers, and the records can ....
We can use SingleEmailMessage to send email notification from Salesforce Triggers. The following sample trigger will send an email when the Case status is set to Escalated. Sample Trigger: trigger ....
The below Apex code is used to update a field(Comments__c) in Member__c Object, where Marital__Status and Comments__c are fields n Member__c object. Sample Code: trigger commentsUpdate on Member__c (before Insert,before ....
A trigger is a piece of Apex code that executes before or after the following types of operations: insert update delete merge upsert undelete Apex can be invoked through the ....