Set Audit Fields upon Record Creation

Field is not writeable LastModifiedDate

Field is not writeable LastModifiedDate

Here is a error you might get while updating a system field. Mostly the lastmodified field. There might be situations when you wanted to update the lastmodifieddate for your test class or some other reason. You will get error : Field is not writeable LastModifiedDate . But there is a workaround for this. I had a post written about how to enable the “Set Audit Fields upon Record Creation”. This could be handy sometimes.

Hoping you can revisit the post here : Set Audit Fields upon Record Creation

Field is not writeable LastModifiedDate


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *