My Oracle Support Banner

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

Last updated on JUNE 22, 2022

Applies to:

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


On : version, Opportunities

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

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

//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.



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

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