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
Leave a Reply