You need to sign in to do that
Don't have an account?
jgrenfell
Excluding trigger updates/inserts from validation rules
Does anyone know of a way to determine that an insert/update is being done by a trigger in a validation rule, for instance if there's a different User for changes made by a trigger? I've hit a couple instances where Triggers fail because they don't pass a validation rule, so I'm hoping there's a way I can exclude a trigger in the validation rule itself, like AND(user != triggeruser, validation rule...).
We have been able to handle this in the following way:
I find it easy to use date fields, but you could use a number field and increment it or a string and just generate a random string each time to put in there. The point is that you have a field that will change and only System Admins (or code running as System) can modify.