Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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

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 ('brian.t.langdon@gmail.com','test@test.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 brian.t.langdon@gmail.com.

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!