Hi,
I would like to restrict the deletion of contact record using groovy script below. Based on the oracle article (see link below), use "Before Modify" trigger but this trigger is not available in R13. I tried using "Before Update" and as expected it does not work successfully due to ADF FACES error.

Oracle article: https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=236939197033781&id=2215263.1&_afrWindowMode=0&_adf.ctrl-…
Groovy Script:
if (isAttributeChanged('PartyStatus') && PartyStatus == "I")
{
throw new oracle.jbo.ValidationException('Billing Contact cannot be deleted in Sales Cloud.')
}
Please help.
Thank you,
Jessie