Undelete Trigger on Case
Undelete Trigger on Case
Undelete Trigger Class:
trigger unDeleteCase on Case (after undelete) {
if( trigger.isundelete){
list<Case> casesUnDeletedList = new list<Case>();
casesUnDeletedList = [SELECT id,After_Undelete__c FROM Case
WHERE Id IN :trigger.newmap.keyset()];
for(Case c :casesUnDeletedList) {
c.After_Undelete__c = true;
}
update casesUnDeleted;
}
}
*** Trigger Most Common Interview Questions and Answers for MNCs and Small-Mid Companies ***
Visualforce Most Common Interview Questions and Answers for MNCs and Small-Mid Companies ⇒ *** Comming Soon ***
Apex Most Common Interview Questions and Answers for MNCs and Small-Mid Companies ⇒ *** Comming Soon ***
Lightning Component Most Common Interview Questions and Answers for MNCs and Small-Mid Companies ⇒ *** Comming Soon ***
Lightning Design System Most Common Interview Questions and Answers for MNCs and Small-Mid Companies ⇒ *** Comming Soon ***
Freelancing Services At Salesforce: Freelancing Services
How to Create Object at Salesforce Classic:- https://sujay-salesforce.blogspot.com/2019/04/how-to-create-object-at-salesforce.htmlWhat is Workflow Rule At Salesforce:- https://sujay-salesforce.blogspot.com/2019/04/what-is-workflow-rule-at-salesforce.htmlHow to Create Field at Salesforce Classic:- https://sujay-salesforce.blogspot.com/2019/04/how-to-create-field-at-salesforce.htmlWhat is a Trigger:- https://sujay-salesforce.blogspot.com/2019/08/what-is-trigger.html
Comments
Post a Comment