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 and later
Oracle Fusion B2B Service Cloud Service - Version to [Release 1.0]
Information in this document applies to any platform.


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" }


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.