What is right trigger to delete Opportunity?
(Doc ID 2441871.1)
Last updated on DECEMBER 22, 2020
Applies to:Oracle Fusion Sales Cloud Service - Version 126.96.36.199.0 and later
Information in this document applies to any platform.
On : 188.8.131.52.0 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.')
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