How To Use OR Operator In A REST API Query?
Last updated on MARCH 31, 2017
Applies to:Oracle Fusion Sales Cloud Service - Version 18.104.22.168.0 and later
Information in this document applies to any platform.
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/22.214.171.124/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".
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