Skip to Main Content

Cloud Platform

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Restrict contact deletion using groovy script in R13

JessieJul 23 2018 — edited Jul 24 2018

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.

pastedImage_3.png

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

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 21 2018
Added on Jul 23 2018
1 comment
312 views