How is it possible that the following code can return true


It was my impression that the LastModifiedBy field was never createable


In my dev org this apex:


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.

  • 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.