-
How to handle row locks in Salesforce Apex Batch Jobs?
Hello,
I am writing complex batch job which runs for every hour and adds contacts to CampaignMember object, at the same time some other batch jobs are updating contacts in Campainmember object. Due to this we are encountering row locks and because of this row locks few records are not getting updated. Can any one suggest better solution other than using [select id from campaign limit 1 for update]
Thank you,
Jagannath
Log In to reply.
Popular Salesforce Blogs
Permission Sets in Salesforce - Get Started Guide
Introduction Permission sets are a collection of settings and permissions that allow the users to have additional access, which they have already got from their…
A Guide to Salesforce ZeroBounce Integration
In today’s world, Email is like our new identity. If we want to communicate with a person whether known or unknown, email plays a crucial…
Popular Salesforce Videos
How to Use Customer 360 | Salesforce
See how Salesforce Customer 360, our entire portfolio of technology, unites your team with company data on one integrated CRM platform, delivering the personal experiences…
TrailheaDX 2021: Salesforce's Parker Harris Explains How Low-code is Reshaping Software Development
Salesforce CTO and co-founder Parker Harris talk about TrailheaDX 2021 and how low-code is dramatically changing the process of business software development. Watch and learn.
Things you can do with Loyalty Management in Salesforce to Create Lifelong Customers
Although keeping customers is not always simple, statistics show that when they are a part of an ongoing customer loyalty management program, they spend 67%…