Can I use LINQ to get more than 100 records back from a Quickbooks Online ServiceContext?

Viewed 134

For my Quickbooks Online integration, I'm using the .NET SDK and was previously using LINQ to access data from a ServiceContext:

var paymentMethodsService = new QueryService<PaymentMethod>(ServiceContext);
_paymentMethods = paymentMethodsService.Select(x => x).ToList();

When testing, we noticed that this only returns the first 100 records. (Presumably because this is the default page size?)

We can get around this by using a query containing MAXRESULTS:

var itemsService = new QueryService<Item>(ServiceContext);
_items = itemsService.ExecuteIdsQuery("SELECT * FROM Item MAXRESULTS 1000").ToList();

My question is, can I achieve the same result without using a query string?

1 Answers
Related