You need to sign in to do that
Don't have an account?
Anthony Wheeler
Trigger.old and Trigger.new returning same value
I'm trying to write a trigger that tests if a custom field on a User record changes after the record is updated. In my test class, before the update, the field is assigned to null. It is then populated and updated, but in the trigger, Trigger.old and Trigger.new are returning the updated field. I have verified this through the debug log. Not sure why this is happening.
NOTE: When adding code please use the "Add a code sample" button (icon <>) to increase readability and make it easier to reference.