You need to sign in to do that
Don't have an account?
Darshit Pathak 10
What happens when trigger execution goes from After Insert to After Update and then validation is failed?
Assume A Lead record is inserted, in AfterInsert trigger code is written to populate some fields on the same lead, so update DML is performed on lead from AfterInsert trigger.
But on Update one custom validation rule is failed and error is thrown.
In such scenario the whole transaction should fail or only the Update part?
But on Update one custom validation rule is failed and error is thrown.
In such scenario the whole transaction should fail or only the Update part?
Try might assist your query.
I hope you find the above information is helpful. If it does, please mark as Best Answer to help others too.
Thanks.
If you implement it then you may get the reason why your validation is failed