Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- list<contact> lstcon = new list<contact>();
- map<Account,list<contact>> mapacccon = new map<account,list<contact>>();
- for(contact con : mapacccon.values())
- {
- con.accountid = '00128000010UjnR' ;
- lstcon.add(con);
- }
- update lstcon;
- delete [select id from account where name like 'ADP Limited'];
- }
- global void finish(database.BatchableContext bcon)
- {
- }
Add Comment
Please, Sign In to add comment