You need to sign in to do that
Don't have an account?
Nadia
account merging
Hi, I am trying to merge two accoutns using apex when a new account that is created matches an existing master account by name. In after insert trigger, I call merge DML statement: merge primaryAcc newAcc; given their names match.
When I test it, I see that a merge operation is being called and that a newly created account gets deleted after that, however if I add some fields to a new account, I dont see them being copied to a master account during merge.
If I try to merge using 'Merge Accounts' tools from SF interface, it works fine and the fields are getting updated, but I can't get it to work with APEX. Can anyone help?
thanks!
When I test it, I see that a merge operation is being called and that a newly created account gets deleted after that, however if I add some fields to a new account, I dont see them being copied to a master account during merge.
If I try to merge using 'Merge Accounts' tools from SF interface, it works fine and the fields are getting updated, but I can't get it to work with APEX. Can anyone help?
thanks!
-Jason