You need to sign in to do that
Don't have an account?
Shubham Sinha 49
Create a handler class on Account Object
I need to write a class which creates and updates the Account object. Criterias are first it will search the existing record in the database if the Last Name and ZIP code fields of the record do not match, Creates the Account record and if matches then updates the existing record . Updating field would be "Related".
How to do this. Please help
How to do this. Please help
Okay sure. Sorry for the grammar mistakes in my original post. When creating the trigger below, I assumed that your handler will have only one method dedicated for this requirement. I also assumed that your handler method will only have one parameter of a list of Account sObjects. Please replace the generic terms in caps with the name of your handler class and its method from your org. If you need help writing the handler class, feel free to reach out. Also, feel free to post any questions that you may have. I suggest naming the handler class, AccountTriggerHandler so that they are easy to associate one another.