function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DhaDha 

Delete trigger for checking child records

Hi all,

 

i am struggling with delete trigger.If am clicking delete link or button for the record of the object,it should check whether ithe record has child records.If the record has child records,want to display the message.

I tried the below coding.but its not displaying error message.its getting deleted eventhough it has child records.

 

plz provide me coding.

 

Thanks,

Dhana

sfdccoder1sfdccoder1
You didn't provide any "below coding".