Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Execute method of batch class used in SFDC Stop UNABLE_TO_LOCK_ROW blog
public void execute(Database.BatchableContext bc, List<SObject> records) {
List<Product_Part__c> productParts = (List<Product_Part__c>) records;
for(Product_Part__c productPart : productParts) {
productPart.Count__c = 100;
update productParts;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment