You need to sign in to do that
Don't have an account?
Rishu
Validation Rule using trigger
I have a requirement to throw an error using trigger:-
I have two object , object1 and object2 (child object) - MD Relationship
Object1 - stage field
object2 - field 1 and field 2 ( Picklist field)
If the object1 has related record where field 1 = "Closing"and field 2 = "Satisfied " then stage field of object1 should not be equal to Closing.
I have two object , object1 and object2 (child object) - MD Relationship
Object1 - stage field
object2 - field 1 and field 2 ( Picklist field)
If the object1 has related record where field 1 = "Closing"and field 2 = "Satisfied " then stage field of object1 should not be equal to Closing.
Object1 have multiple child records, which you have to consider?
Thanks!!
If this helps, Please mark it as best answer.
Thanks!!
Trigger: Handler class:
If this helps, Please mark it as best answer.
Thanks!!