Guest User

Untitled

a guest
Apr 25th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. list<contact> lstcon = new list<contact>();
  2. map<Account,list<contact>> mapacccon = new map<account,list<contact>>();
  3.  
  4. for(contact con : mapacccon.values())
  5. {
  6. con.accountid = '00128000010UjnR' ;
  7.  
  8. lstcon.add(con);
  9.  
  10. }
  11.  
  12. update lstcon;
  13. delete [select id from account where name like 'ADP Limited'];
  14.  
  15. }
  16.  
  17. global void finish(database.BatchableContext bcon)
  18. {
  19.  
  20. }
Add Comment
Please, Sign In to add comment