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
luc4luc4 

Enforce crud/fls settings for CampaignMemberStatus objects

Hi,

 

i have written a Campaign trigger that create some custom CampaignMemberStatus objects on the after insert event. Because apex
doesn't enforce crud/fls, normally we must manually take care of it (using describe methods). I'm not sure, but i can't find crud/fls settings for the CampaignMemberStatus object in the profile ui (nevertheless Schema.sObjectType.CampaignMemberStatus seems
to exist). This means also there is no possibilty to writte unit tests with different profiles to verify behaviour.

 

Is CampaignMemberStatus a special case, something like a dependent object from a Campaign? Is it neccessary to manually ensure the crud/fls settings in the campaign trigger code, which is creating the CampaignMemberStatus objects?

 

The code is used in a package and must pass the security review.

 

Thanks for your help,
Greetings Luca