We\'ve successfully migrated our v2 QBO to v3 and after that on the production we got an issue from one of our customers. They have over 100 their customers in QBO account. And
To fetch all of customers for a specified business, first you need to get their count, and then, as mentioned at the previous answer, get the customers by "take" method:
Integer customersTotal = service.executeQuery(selectCount(_customer).generate()).getTotalCount();
QueryResult queryResult = service.executeQuery(select($(_customer)).skip(0).take(customersTotal).generate());
List extends IEntity> entities = queryResult.getEntities();
for (IEntity entity : entities) {
if (entity instanceof com.intuit.ipp.data.Customer) {
createCustomer((com.intuit.ipp.data.Customer) entity, owner);
}
}