How To Build A Query Using Groovy Script? (Doc ID 2002806.1)

Last updated on JUNE 20, 2017

Applies to:

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

Goal

How to build a query using Groovy Script?

 

The example script on OpportunityVO shows a filter using multiple criterias on the same attribute. For example a search with a condition like 'where value > 20 and value < 30'

or Opportunity Name starting with 'A' need to be used.  On adding multiple conditions to same attribute using ensureCriteriaItem() was not working as expected.

 

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