Advertisement
Guest User

Untitled

a guest
Apr 26th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1.  
  2.  
  3. Set<Account> accToUpdate = new Set<Account>();
  4. Account acc = new Account(Name ='Test33');
  5. insert acc;
  6. accToUpdate.add(new Account (
  7. Id = acc.Id,
  8. Name = 'Test'
  9. ));
  10. accToUpdate.add(new Account (
  11. Id = acc.Id,
  12. Name = 'Test1'
  13. ));
  14. update new List<Account> (accToUpdate);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement