function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
gokubigokubi 

Cannot create CampaignMembers with a Status that does not already exist on a Campaign

I have code that looks at the members of a campaign and then modifies their memberstatus based on some criteria. Before Winter 07 I could use an arbitrary memberstatus. I discovered that in Winter 07, I have to use a memberstatus that is already assigned to the Campaign. Can an sf.com dev confirm this is a change?

I've fixed the problem by moving my code to the AJAX 8.0 toolkit, and first check for the campaignmemberstatus, creating it on the campaign as necessary.

Thanks,
Steve