You need to sign in to do that
Don't have an account?
mukesh gupta
Trigger_issue
Hi Expert,
I am stuck in a logic.
i have contact with email fields. like
Contact1(lastname='test', email="aa@gmail.com"). if a new contact insert with same email id then new contact all fields value merge in old contact and this new contact will be delete.
Please suggest a way.
Thanks
Mukesh
I am stuck in a logic.
i have contact with email fields. like
Contact1(lastname='test', email="aa@gmail.com"). if a new contact insert with same email id then new contact all fields value merge in old contact and this new contact will be delete.
Please suggest a way.
Thanks
Mukesh
Do you want all the existing values of old contact will get replaced with new one or merge means Old Contact name='ABC' New Contact Name = 'LKO'. Result Name = 'LKO' or 'ABCLKO. Plese confirm.
Thanks,
Lokesh
Hi Mukesh,
You can find example for merging record in the apex developer guide itself
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_dml_examples_merge.htm
You can also check the help page for database methods which list all available methods for merge
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_database.htm
Thanks
Vivian