My Oracle Support Banner

What is right trigger to delete Opportunity? (Doc ID 2441871.1)

Last updated on AUGUST 30, 2018

Applies to:

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

Goal

On : 11.12.1.0.0 version, Opportunities


Customer don't want the user to delete the Opportunity.
So they wrote a validation script

Validation_Delete
Trigger : BeforeDelete
Message : Opportunity cannot be deleted. Please contact your CRM Administrator

adf.error.raise(null);
//throw new oracle.jbo.ValidationException('Opportunity cannot be deleted. Please contact your CRM Administrator.')
return false;

Now when customer tries to delete the Opportunity they get the message 'Opportunity cannot be deleted. Please contact your CRM Administrator', but the Opportunity is gone from UI.
However, when customer comes back again they see the Opportunity again.

Customer mentioned that they are seeing this behavior after Rel 13 upgrade.


 

Solution

To view full details, sign in with your My Oracle Support account.

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


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.