How to prevent deletion of the last Relationship that a Contact has with an Account - Groovy script?

(Doc ID 2286275.1)

Last updated on JULY 13, 2017

Applies to:

Oracle Fusion Sales - Version 11.1.11.1.0 and later
Information in this document applies to any platform.

Goal

 A Contact can have several Relationships with both Accounts and other Contacts. The purpose of the script is to prevent deleting the last Relationship a Contact has with an Account (a Contact should have at least 1 Rel with 1 Account)

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms