1. Kayako Download customers: we will continue to develop and support Kayako Download beyond July 2017, alongside the new Kayako for existing customers.

    Find out more.

  2. The forum you are viewing relates to Kayako Classic. If you signed up or upgraded to the new Kayako (after the 4th July 2016), the information in this thread may not apply to you. You can visit the forums for the new Kayako here.

How to limit result of results return searching on Organisation search using API

Discussion in 'Developing, APIs and extending' started by B3rt, Feb 28, 2020.

  1. B3rt

    B3rt New Member

    Hi,

    I do a API request using:
    $data['userorganization'] = '1';
    $data['query'] = '$organisationId;

    'Tickets/TicketSearch', $data

    I get all the tickets back of this organisation so this works,

    BUT...
    Some of my organisations have over 1000 tickets which results in 500 error of to much data..

    Is there a way to limit the returned results?

    If i limit it the search in the settings to 500 i get 500 back but i do not get the last 500 but the first 500..

    So how do i get all tickets of 1 organisation ID with a limit and the last answered thicket first.

    If this is not possible using the API can i edit the php code of kayako somewhere so i set it there?
    Whic file and/or function do i need to edit (i could not find it)

    Thx
     
  2. bear

    bear Kayako Guru

Share This Page