softwerkab / fortnox-csharp-api-sdk

.NET SDK for Fortnox API.
MIT License
53 stars 65 forks source link

Limit setting on search queries - seems hardcoded to 100 records? #291

Open lafar6502 opened 8 months ago

lafar6502 commented 8 months ago

Hi, in search functions, like InvoiceConnector.FindAsync there is a Limit parameter for setting the number of rows to be returned. But it seems that there is a limit on Limit and no matter what you set the API will return 100 records maximum. Is this by design, and if so, can the maximum Limit be set globally somehow? Thanks RG

adamelfstrom commented 8 months ago

Is this also an issue when you use Limit = ApiConstants.Unlimited ?

lafar6502 commented 8 months ago

never tried, will look into this on next occasion. So far i've handled this with paging..