Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch Code to create Campaign Memberships asynchronously #61

Open
mscholtz opened this issue Apr 3, 2012 · 1 comment
Open

Batch Code to create Campaign Memberships asynchronously #61

mscholtz opened this issue Apr 3, 2012 · 1 comment

Comments

@mscholtz
Copy link
Contributor

mscholtz commented Apr 3, 2012

A few clients w/ high traffic web forms (Dogwood, TCC) have run into the problem where multiple campaign member inserts for the same campaign run into record locking issues on the campaign, due to the standard rollups (we think). See http://boards.developerforce.com/t5/Apex-Code-Development/UNABLE-TO-LOCK-ROW-on-CampaignMember-junction-object/m-p/388025

Fix: include optional batch class like Nick has to create the CM's asynchronously. Devise web forms to write reference to campaign to contact rec, rather than inserting the CM directly (or use apex webservice and do the CM insert in try/catch. Batch does cleanup.

This could also be an optional add-on to GWBase, either managed or unmanaged. But would be good not to have to deploy it from scratch for each client that needs it.

@mscholtz
Copy link
Contributor Author

mscholtz commented Apr 3, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant