Triggering a function when a value of a record changes

Does anyone know how one would trigger a function when a record's value in a table changes?

For example, I have a Companies table with a column called last_email_interaction. When the last_email_interaction table changes, I would like to run a function.

Any advice would be greatly appreciated!

Other
6 replies