enter image description hereenter image description here

Created one book object in that applying for update trigger on age condition if book type is horror ae should be updates as 21

1 Answer 1


You are trying to update old value through Trigger.old, thats why the error is.

Trigger.old is always read only.

Try to update new value Trigger.new instead of Trigger.old

Refer Context Variable Considerations

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.