You need to sign in to do that
Don't have an account?
RedPoint
Formula Field not triggering a trigger
I have a trigger on a custom object. If this custom object is updated any parent objects that have the custom object as a child are updated. Everything works fine. However, the custom object has a formula field that is date specific (i.e. if warranty end date is greater than today then "yes" else "no"). The problem is when the formula field changes to "no" (moving from 12/1 to 12/2), the trigger is not triggered; the change of the result in the formula field does not create an update. How can I make a formula field make an update so the trigger gets used?
Thanks!
Message Edited by RedPoint on 12-02-2008 10:48 AM
Thanks!
Message Edited by RedPoint on 12-02-2008 10:48 AM
It makes sense to me that the trigger is not fired - formula fields are calculated, which means they are always read-only, and that may exclude them from consideration of triggers. You could always have another field that is updated with the same conditions as the formula field (through a timed workflow), or run a batch at night that would retrieve newly changed candidates, updated a field and fired the trigger, which might make sense since the granularity of the time seems to be a day.
Hope this helps.
Thanks.