+ Start a Discussion

Function for getting a list of changes between two objects (old and new)

Is there a built-in generic function to find a list of changes/differences between two objects of same type, e.g. opportunity?


For example: in updating an opportunity, in my trigger, i want to detect get a list of which fields have been changed. I wrote a function to detect any change by comparing all fields in an opportunity old against new.