You need to sign in to do that
Don't have an account?
prime ki
Records Locking
i am traying to lock the records using SOQL(FOR UPDATE) Statement but it's not getting locked.In this two ways i am traying to lock the records
1.Account [] accts = [SELECT Id FROM Account WHERE Name = 'SOQL' LIMIT 2 FOR UPDATE];
2.for (List<Account> Acc : [select id from Account
where Name = 'SOQL' for update]) {
}
- SOQL Record Locking: For Update, please check the below link for reference.
- https://salesforce.stackexchange.com/questions/22636/soql-record-locking-for-update
hope it helps.Please mark it as best answer if the information is informative.so that question is removed from an unanswered question and appear as a proper solution.
Thanks
Rahul Kumar