+ Start a Discussion

Merge API Question

I'm using Merge API in batch apex with scope 1 (since Database.Merge() accepts one master record). I understand that the merge() call will only reparent the releated records but none of the values of the master record will be overridden with values of slave record. I've a requirement where if the fields on the master record are blank they should be overridden with the values of slave record. I can do the check and update the values of master record if the fields are handful, but we've approx. 700 fields on account. It's hard to check the emptiness for all the 700 fields and override with the values of the slave record. Is there any simple way to do this ? Any help on this is much appreciated. !

Thanks in advance..!!