but it is not working
2 件の回答
hi Satya, following your option 1 i wrote a trigger
but it is not working!! can you help me with this?trigger error_delete on Student_Batch_Junction__c (before delete) {
for(Student_Batch_Junction__c d:Trigger.old){
if(d.Batch__r.complted__c==true){
d.adderror('cant be deleted');
}
}
}