Skip to main content
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
5 answers
  1. Feb 10, 2020, 2:21 PM
    Sorry it should be containsKey:

     

    if(existingAcctMap.containsKey(key))
0/9000