You need to sign in to do that
Don't have an account?
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