Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global void execute(Database.BatchableContext BC, List<Contact> myContacts){
- List<Id> contactIds = new List<Id>();
- for (contact c: myContacts){
- contactIds.add(c.id);
- }
- List <contact> lockedContacts = [select id, f1, f2 from Contact where id in :contactIds FOR UPDATE];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement