We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

REST API IN query only matching on first result

Accepted answer
12
Views
4
Comments
edited Jan 18, 2021 8:21PM in Sales 4 comments

Content

Hi there,

Something strange is going on with a REST API query that we are running.

We are trying to return contacts based on match to a list of email addresses.

https://cagp-test.crm.us2.oraclecloud.com:443/crmRestApi/resources/latest/contacts?onlyData=true&q=EmailAddress IN ('[email protected]','[email protected]est.com')

Now this only performs a match on the first email address in the IN clause.  Any subsequent values are ignored.  So for the above we only get a match on [email protected]

If we change the IN query order to be

https://cagp-test.crm.us2.oraclecloud.com:443/crmRestApi/resources/latest/contacts?onlyData=true&q=EmailAddress

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!