improveit 360 systems with numerous Users accessing the Call Queue and related Campaigns could experience two (2) Users simultaneously opening the same Campaign, at the exact same time. If the two (2) Users access the same Campaign at the same exact moment it is possible the system will create a duplicate Campaign Members for the same Prospect, effectively resulting in two telemarketers contacting the Prospect at the same time.
Available in the Enterprise (Dev1) Spring '21 Release, the 'CampaignUtilities' class will include Apex Record Locking around the Marketing Opportunity so that only one Campaign Member can be created for each Marketing Opportunity.
Enable Apex Record Locking
Go to Setup > Create > Workflow & Approvals > Process Automation Settings
- Enable Record Locking and Unlocking in Apex (TRUE)