I am migrating over legacy fields within a Salesforce org, but not performing any actual data updates (just moving some fields around).

For this reason, I'd like to preserve the existing LastModifiedBy and LastModifiedDate information. Is there a way to turn the update of this system field off?

I'm currently planning on using anonymous Apex, but I'm happy to switch if I can preserve these fields in a different way. I'm also happy to continue updating SystemModstamp.

I feel like I read this capability somewhere in the documentation, but now it seems that may have been a dream.


The fields can be editable when inserting records, you need to raise a case with SalesForce to request edit access on the CreatedBy, CreatedDate, LastModifiedBy and LastModifiedDate fields. This will allow you to edit the fields to whatever values you want when inserting the records.

Using this you could potentially create a new record which clones the old record, including the LastModifiedBy and LastModifiedDate fields and change the fields you want, insert the record and then delete the old record.

  • 1
    I thought those fields were only writeable on create not update though? – Girbot Feb 23 '15 at 17:17
  • Looks like you are correct according to this – BarCotter Feb 23 '15 at 17:23
  • So it doesn't make sense to do that as part of a release cycle, then, huh? – Charles Koppelman Feb 24 '15 at 2:46

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.