You need to sign in to do that
Don't have an account?
I.S.K
how to prevent the parent record from the deletion
Hi,
Kindly please let me know how to prevent the parent record from the deletion when the child record referencing the parent.
This could be done with the lookup relationships.
Thanks.
You will have to write a before delete trigger, query for children and if they exist, add an error to the parent record.
All Answers
You will have to write a before delete trigger, query for children and if they exist, add an error to the parent record.
Hi.
Thanks for your help... i have used a trigger on the parent object and queried the children and put the error if they exist.