Topic by Mark Bradley
Hi all,
I have a custom process script in while I am attempting to catch a change to a custom field on the Contact object. I extract the field value and the previous field value from $obj and then compare them.
$con_wiw_prev = $obj->prev->CustomFields->CO->MyCustomField;
$con_wiw_new = $obj->CustomFields->CO->MyCustomField;
However, while the new field value is correctly available in the var, the previous value is always NULL.
Firstly, is the code snippet above correct? (Just in case)
I am now under the impression, from reading these forums and documentation, that custom fields only show their value in the passed $obj if they have been changed, otherwise they are null. Does this mean that obj->prev also suffers from this? If so, how are you supposed to compare pre-update and post-update custom field values in a Custom Process?
Cheers,
Mark