findAll method of DataService class returns only 100 entities

前端 未结 2 1351
自闭症患者
自闭症患者 2021-01-28 14:11

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

2条回答
  •  猫巷女王i
    2021-01-28 14:59

    You should use Query endpoint with page filters.

    The following query gets customers 1 - 10:

    String query = select($(customer)).skip(0).take(10).generate();
    

    Output - SELECT * FROM Customer STARTPOSITION 1 MAXRESULTS 10

    The following query gets customers 21 - 25:

    String query = select($(customer)).skip(20).take(10).generate();
    

    Ref - https://developer.intuit.com/docs/0025_quickbooksapi/0055_devkits/0201_ipp_java_devkit_3.0/0011_query_filters#Pagination

    finally

    QueryResult queryResult = service.executeQuery(query);
    

    Thanks

提交回复
热议问题