Object Validation Rules Including Sales Stage and Sales Method Do Not Seem to Work For Opportunity Object: No Refresh (Doc ID 1552861.1)

Last updated on JULY 07, 2017

Applies to:

Oracle Fusion CRM Application Composer - Version 11.1.5.0.0 to 11.1.10.0.0 [Release 1.0]
Oracle Fusion CRM Application Composer Cloud Service - Version 11.1.5.0.0 to 11.1.10.0.0 [Release 1.0]
Information in this document applies to any platform.

Goal


Requirement:
If Sales Method = sm1 then parent opportunity field is required.
Parent opportunity field is a custom field.


Object Validation Rule on opportunity object:
println('SalesMethod='+SalesMethod);
println('parent='+ParentOpportunity_c);
if (nvl(SalesMethod,' ') == "sm1" && ParentOpportunity_c == null)
{return false};
else
{return true};

With the following error message: If Sales Method is sm1 then Parent Opportunity is required



Test Results :

a. Update an already existing oppty, do not get any error message even if Sales Method = Soft Backlog


Example:
-------------
Oppty name = smOppty
Fields on the Edit Opportunity: smOppty

Parent Opportunity = blank
Sales Method = sm

Update Sales Method from 'sm' to 'sm1' and click on Save button
there is no error message.
It seems that there is no refresh and that server script doesn't take into account the change of the value of the lookup from sm to sm1.

 

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