My Oracle Support Banner

GROOVY TO WARN USER WHEN SALES STAGE MODIFIED NOT WORKING FOR ALL CONDITIONS (Doc ID 2830855.1)

Last updated on OCTOBER 09, 2023

Applies to:

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

Symptoms

Using a custom script that has the following if statement


if(SalesStageId != '300000001387006' || SalesStageId != '300000001387007')
the if statement is still evaluated true even if salesstageid is equal to one of this values

 

Complete script:
def oldValue = WinProbabilityOriginalValue_c
def newValue = NOV_WinProbability_c
println("old value of WP is:"+oldValue)
println("new value of WP is:"+newValue)
if(SalesStageId != '300000001387006' || SalesStageId != '300000001387007')//sales stage id for Lost and cancelled
{
 println("sales stage is- "+SalesStageId)
 if(newValue == '0' || newValue == '25' || newValue == '50' || newValue == '75' || newValue == '95' || newValue == '99')
 {
   if(newValue < oldValue)
   {
     adf.error.warn(null)//Show the warning message to the user
   }
  }
else
{
 if(newValue == '100')
 {
   return true
 }
}
}

Changes

 

Cause

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
Symptoms
Changes
Cause
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.