POST conversation/search cannot search by author email

Hello, provided a valid email address, I’m trying to pull all conversations associated with the email address.

a POST to conversation/search with the following query should do the trick:

{
 "query":  {
    "field": "source.author.email",
    "operator": "=",
    "value": "person@company.com"
  }
}

But it always returns an empty value whenever you provide a full email address.

If I changed value to “company.com” (a partial email address) it would find the conversations.

Is there a way to search for conversations with a complete/exact email address?

The only alternative I can come up with is to do a contact/search for email, get all of the contact IDs from the results, and then do a conversation/search with multiple conditions one for each source.author.id. That works, but it is an extra query and it seems like source.author.email should work but it does not.

Any ideas?

Thanks!

Looks like a bug to me, = should be equal.

@zach

Hey @chadhutchins - yeah, totally sounds like a bug. Can you message in via our Messenger with an example request/payload and the response, plus the time you took this and with what app package and workspace the Access Token is associated to? We can then get a better sense of what’s going on and keep you informed too. Cheers :raised_hands:

Thanks for following up on this!

@zach I’ll work on getting that to you by the end of the week.

@zach Hi Zach, I sent you a direct message with the details. Let me know if you need anything else. Thanks!

1 Like