I need to merge the contacts on the basis of email id and owner Id. When I try to merge records, duplicate records are getting deleted but the fields which are empty in master record are not populating with deleted records if they having values in those fields.
For Example:
Contact1 --> Email='[email protected]' Phone='1234' ownerId = '123'
Contact2 --> Email='[email protected]' ownerId = '123'
so criteria is getting matched since both records have same email id and owner id. When I try to merge using
merge contact2 contact1;
then contact2 gets deleted and contact1 persists. So my question is should not I get value of phone in contact1 as '1234' once merge dml operation takes place.