3

How is it possible that the following code can return true

Contact.LastModifiedById.getDescribe().isCreateable()

It was my impression that the LastModifiedBy field was never createable

5

In my dev org this apex:

Schema.SObjectType.Contact.fields.LastModifiedById.isCreateable()

Evaluates to true. There is a black tab option that salesforce support can enable that does allow audit fields like LastModifiedById to be creatable (but not editable). I strongly suspect this was enabled in your org when you checked this.

| improve this answer | |
  • You are correct. I confirmed with Salesforce support. Thanks for the response – Owen Davies Apr 1 '14 at 2:51

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.