How To Use OR Operator In A REST API Query?
Last updated on MARCH 31, 2017
Applies to:Oracle Fusion Sales Cloud Service - Version 126.96.36.199.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/188.8.131.52/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
Million Knowledge Articles and hundreds of Community platforms