You need to sign in to do that
Don't have an account?

Trigger Tracking
Is there a way to track what fired a trigger. Example: Was the trigger caused by the user updating the data, was the trigger caused by another trigger updating the data, or was the trigger caused by a batch process?
Let's see.....
What field do I update when the user has updated the record in the salesforce.com interface?
What field do I update when a trigger has updated the record?
What field do I update when a batch job has updated the record?
Oh, by the way, how do I know that a user has updated a record, how do I know that a trigger has updated the record, and how do I know a batch job has updated the record? If I know this I don't need to update a record!
I AM LOOKING FOR A PROPERTY ON THE TRIGGER OBJECT SO I CAN ASK WHO TRIGGERED THE TRIGGER!