NetSuite-PHP搜索可获取1000多个记录 [英] NetSuite - PHP search to get more than 1000 records
本文介绍了NetSuite-PHP搜索可获取1000多个记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用NetSuite PHP Toolkit(2013_2版本).而且我能够成功进行保存搜索"和客户搜索".除此之外,我的实际客户总数为1800,而我从NetSuite呼叫中仅获得1000条记录.因此,我需要知道,是否可以使用PHP工具包在NetSuite调用中获取所有记录(超过1000条).我的代码基本上是这样的...
I'm working with NetSuite PHP Toolkit(2013_2 version). And I was able to make successful Saved-Search and Customer-Search. Except that, my actual customers are 1800 in total, whereas I get only 1000 records from my NetSuite call. So I need to know, if we can fetch all the records(more than 1000) in a NetSuite call using PHP toolkit. My code goes like this basically...
$service = new NetSuiteService();
$search = new CustomerSearchAdvanced();
$search->savedSearchId = "115"; //internal ID of saved search
$request = new SearchRequest();
$request->searchRecord = $search;
$searchResponse = $service->search($request);
提前谢谢!
推荐答案
1000条记录是一个硬限制.您必须使用 searchMoreWithId (文档) .
1000 Records is a hard limit. You have to use searchMoreWithId (Docs).
代码应如下所示
$searchId = $searchResponse['searchId'];
$request = new SearchMoreWithIdRequest();
$request->searchId = $searchId;
$request->pageIndex = 2;
$moreSearchResponse = $service->searchMoreWithId($request);
这篇关于NetSuite-PHP搜索可获取1000多个记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文