AnsweredAssumed Answered

REST API problem : get only the 20 first Accounts.

Question asked by community-support on Jan 13, 2014
Latest reply on Dec 12, 2014 by Ludovic André
Hello,

I am trying to get all the accounts using the REST API. However, sugarCRM send me only and always the 20 first accounts and not the all list. Even if the attributs offset and max-result are set.

In fact, these attributs attributes seems to be ignored.

See hereunder my request after getting a sessionId:

POST  http://crm1.preprod/service/v4/rest.php

Content-typ: application/x-www-form-urlencoded

Body:

method=get_entry_list&input_type=JSON&response_type=JSON&rest_data=%7B%22session%22%3A%2269ncjeq2i7ol25j0gudi5kkvm0%22%2C+%22module_name%22%3A%22Accounts%22%2C%22offset%22%3A+20%2C+%22max_results%22+%3A+2%7D

Body Ç Readable È :

method= get_entry_list

input_type= JSON

response_type= JSON

rest_data= {'session':'69ncjeq2i7ol25j0gudi5kkvm0', 'module_name':'Accounts','offset': 20, 'max_results' : 2}

In fact, being able to retrieve the all list of the accounts is mandatory for my application.

Did you already encounter this problem and is there any shortcut available ?

Thanks for you help in advance.

Regards,

FrŽdŽric Rossi

(from fr̩d̩ric Rossi)

Outcomes