Hello and thank you in advance. I'm looking to merge about 2000 records (about 1000 merges in total). My question is whether there is a best practices for this type of task. I'm able to merge 1 set of contacts via Execute Anonymous in the Developer Console:
Contact con = [select id,fax,phone from contact where id='xxxxx'];
Contact con2 = [select id,fax,phone from contact where id='xxxxx'];
database.merge(con, con2);
I would imagine I will need to employ a collection of tuples and do a foreach on them to handle the merging. Where do I start here, as far as storing a collection of tuples (e.g. {keeper1, mergee1},{keeper 2, mergee2})? Would I create a custom object that would house the tuples I intend to use for merging and then loop through them? When I have the Apex script written should I execute via the Execute Anonymous, or should I create a class to handle the work and invoke this a different way? Any help is greatly appreciated and sorry if my explanation is lacking.