-
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
Here's How You Can Ease Operations for Your Non-Profit Organization: With a Salesforce Customer Portal
Salesforce's powerful customer portals give you the tools to keep your organization running efficiently and provide your members, donors, and customers with more self-service and…
Empowering Customer Engagement: Unleashing AI in Salesforce CRM
In today's data-driven world, the fusion of artificial intelligence (AI) with customer relationship management (CRM) is transforming the landscape of customer service, engagement, and retention.…
Managed and Unmanaged packages in Salesforce in 2023 | All You Need to Know
What are the various types of packages in Salesforce? Let's understand! Unmanaged Package Think of it as a beautifully wrapped gift box that you can…
Popular Salesforce Videos
Salesforce & Google Analytics integration
Salesforce is one of the most popular CRMs available today. Many teams use Salesforce heavily for reporting and analysis. The ability to model the data…
Modern App Development On Salesforce - Apex Testing
In this series, you will explore Modern App Development on the Salesforce platform, including Heroku. The live hands-on sessions will take you through the journey…
Invoke a Salesforce function from Apex
Learn about the different ways in which you can invoke a Salesforce. Watch this video and learn, if you have any doubts or concerns, do…