My Oracle Support Banner

Validation Is Not Working In Server Script for Opportunity Object (Doc ID 2625723.1)

Last updated on DECEMBER 22, 2020

Applies to:

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


Qn1:On : version, Opportunities

Prompt is not working in server script in Opportunity object

We are trying to throw validation in opportunity object for Estimated Billing Date (EffectiveDate) field but it is not working.

Server script -->

def a=getAttribute('EffectiveDate')
//def a=getAttribute('EstBillingDate_c')
def b=getAttribute('POReceivedDate_c')
  throw new oracle.jbo.ValidationException("EFF Date :"+a+ " POReceivedDate_c : "+b)

  return true
  throw new oracle.jbo.ValidationException("EffectiveDate :"+a+ " POReceivedDate_c : "+b)

  return false



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.