Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get with Resultlist and Count #55

Closed
karsten-eger opened this issue Jul 13, 2018 · 1 comment
Closed

Get with Resultlist and Count #55

karsten-eger opened this issue Jul 13, 2018 · 1 comment

Comments

@karsten-eger
Copy link

This seems to affect all Get-Calls with a result-list in the response.

As suggested in #38 the count in the Get-Calls is useless as it is. Now we noticed this with getContacts as well. I don't know when the change occured but now countdoes not contain the amount of items in the resultlist (with modifiedsince filter) anymore. Instead it's the amount of all contacs regardless of the filtering criteria.

As stated in #38 there now is no way in knowing how many runs a cronjob needs to make or how many pages I need to display in a GUI. Instead I need to loop until the entity array is empty. (see #38 (comment) )
This does not make any sense.

Please change the count value so it accounts for the total amount of entities the filtering is matching or add a second count which does exactly this.

@Mahima-eng
Copy link

Hi @karsten-eger ,
The count field will always show the total count in the response body. The logic behind it is that you can apply limit and offset accordingly until to reach the count i.e. the total resources available.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants