1

enter image description here

Schema.sObjectType.Campaign.fields.My_CustObj_Id__c.isAccessible() // true
Schema.sObjectType.Campaign.fields.My_CustObj_Id__c.isUpdateable() // false

How is this possible?

  • Nitpick, the arrow in your screenshot should really point to the Edit Access checkbox. – Adrian Larson Aug 25 '16 at 15:50
  • Is the running user a Marketing User? – Adrian Larson Aug 25 '16 at 15:50
  • @AdrianLarson no, System Administrator. Arrow points to row in general – Vladyslav K Aug 25 '16 at 15:59
  • 1
    No, Marketing User is a field on the User object. It needs to be checked to work with the Campaign object. Although I would think isAccessible would be false if it's not checked, it would be helpful to explicate the value of that field on your running user record. – Adrian Larson Aug 25 '16 at 16:01
  • @AdrianLarson Enabling 'Marketing User' fixes problem. Thanks! Please, move your comment to an answer – Vladyslav K Aug 25 '16 at 16:13
2

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?

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.