You need to sign in to do that
Don't have an account?
Need to delete all members of a campaign given a campaign ID
Hi All,
I need to remove all campaign members from within an apex class (unmanaged package), I can get get campaign ID, but I can't find what is the method to remove all members, can someone point me in the right direction?
Thanks!
-Dave
I need to remove all campaign members from within an apex class (unmanaged package), I can get get campaign ID, but I can't find what is the method to remove all members, can someone point me in the right direction?
Thanks!
-Dave
Did you tried something like
YOUR_CAMPAIGN_ID_SET is your collection that contain the campaign id.
All Answers
Did you tried something like
YOUR_CAMPAIGN_ID_SET is your collection that contain the campaign id.
@Prateek! Your code looks perfect. I am pretty new on salesforce development . Can you tell me how to use this code. I mean add in the apex class or trigger ?
That would be a great help