Schema.sObjectType.Campaign.fields.My_CustObj_Id__c.isAccessible() // true Schema.sObjectType.Campaign.fields.My_CustObj_Id__c.isUpdateable() // false
How is this possible?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
There is a field called
Marketing User on the
User object. The running user must have this box checked in order to work with the
Campaign object. See: Who has access to campaigns?