helpscout/helpscout-api-php

Conversations end point returning no conversations, or only 1 conversation

mdabrowski78 opened this issue · 0 comments

Thank you for taking the time to submit an issue with all the details shown below. Our engineering team monitors issues submitted and strives to respond with 1-2 business days.

  • PHP version: 8.3.0
  • SDK version: 3.7.0

Current behavior
Filtering for conversations by 'customerIds' or 'email:...' either returns no conversations for a customer, or only one conversations., whereas search results in the browser like the following URL returns all conversations
https://secure.helpscout.net/search/?query=customerIds%3A618504138

Expected behavior
I expect withQuery("email:customerEmail") or withQuery("customerIds:618504138") should return the same list as if I am accessing it via URL: https://secure.helpscout.net/search/?query=customerIds%3A618504138

Same if I am searching by email:users@email

Steps to reproduce
$client = ApiClientFactory::createClient();
$client = $client->useClientCredentials($config['appId'], $config['appSecret']);
$filters = (new \HelpScout\Api\Conversations\ConversationFilters())
->withQuery('customerIds:618504138');

$conversations = $client->conversations()->list($filters);

// At tis point, I have a page collection
print_r($conversations);

// This should give me an array of conversations
$conversations = $conversations->toArray();

// Gives me a blank array
print_r($conversations);