How To Use OR Operator In A REST API Query? (Doc ID 2250296.1)

Last updated on MARCH 31, 2017

Applies to:

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

Goal

Its regarding usage of OR operator to perform search across fields in R12.

Customer used the sample query
Example query body:...&q=OrganizationName = 'ABC' or OwnerName = 'xyz'

Query used: https://[hostname]/crmCommonApi/resources/11.12.1.0/accounts?&q=OrganizationName = 'Testing Complete' or OwnerName = 'xyz'

The response generated by this REST query returns only 1 account record whose Organization Name is "Testing Complete".
 

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