My Oracle Support Banner

Groovy Script on SalesStage Not Updating Revenues Correctly (Doc ID 2595247.1)

Last updated on DECEMBER 22, 2020

Applies to:

Oracle Fusion CX Sales Cloud Service - Version 11.13.19.07.0 and later
Oracle Fusion B2B Service Cloud Service - Version 11.13.20.01.0 to 11.13.20.01.0 [Release 1.0]
Information in this document applies to any platform.

Goal

We have BeforeUpdate script at Revenue level, to update a custom field when Opportunity Sales Stage changes. This is not updating always this custom field.

Example code:

def stage = Opportunity?.SalesStageId
if (stage == 300000001509089 || stage == 300000001514567 ) {
    TypeCode = "value1" }
else if (stage == 300000001508675 || stage == 30000000150134 )
{ TypeCode = "value2" }
 

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.