You need to sign in to do that
Don't have an account?
balakumaran Ramanujam
Hi, I have a requirement : I have account and a custom object (Account Plan) with field Active which is a checkbox . Now i have to write a validation rule to make sure there should be only one active filed checked in for one account.Note:relation master
Hi, I have a requirement : I have account and a custom object (Account Plan) with field Active which is a checkbox . Now i have to write a validation rule to make sure there should be only one active field checked in for one account.Note:they are in master detail relation
Try Beow Trigger Please Mark It As Best Answer If It Helps
Thank You!
1. Create Rollup summary field on your parent object (Account). that Count the number of childs (Account Plan) based on the criteria 'Active = TRUE.
2 Add the validation rule in Account object that enforces that the value of above rollup field cannot be greater than than 0.
IF(Rollup_Field > 0 , TRUE, FALSE)
Thanks,
Maharajan.C