You need to sign in to do that
Don't have an account?
arjuna Rajput 29
can we solve this in trigger design pattern
trigger AccountCategory on Account (before insert,before update) { For (Account acc:Trigger.new){ if(acc.salary__c <=10000) acc.category__c='sample1'; else if (acc.salary__c>10000 && acc.Salary__c<=100000) acc.Category__c='sample2'; else acc.Category__c='sample3'; } }
Please follow below code:-
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
method defining in helperclass(whether it is isupdate or isinsert).we call these method in Handler class.....Trigger in which we call our Handler class we also need...
We dont want for single record we do for multiple record so we do this program using Triggers design pattern in which we have Handler_class,Helper_class and Trigger.