function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Doug ADoug A 

Possible to determine which field on an object has changed? Trigger outbound message if changed?

We'd like to trigger an outbound message on an object and then take action based on whether or not a particular field has changed.
 
Does this require storing the previous state of the object and comparing it to the new state, or is there some built-in mechanism to determine which field on an object has changed?
 
We can compare the current state of an object to an older version if we keep a copy of the data in a database, but it would be ideal to avoid this, obviously. 
 
If this is not available, are there any plans for a future release?  It would be great if, for example, each field in an outbound message could have a flag indicating that its value has just changed.
 
Thanks.
Doug ADoug A
It would appear that I've answered my own question.

You can enable History Tracking for a given object and given fields.  Then, trigger an outbound message when the record changes.  Then, query the history table to determine whether the field has changed most recently, or perhaps since a "last time change checked" specified in a custom field on the object.