我正在运行restlib来查询Netsuite。当我运行一次时,一切正常。
但是,当我添加第二次搜索时,我收到SESSION_TIMED_OUT错误消息。
函数GetNetsuiteCasesJSON()
Dim jsonText As String
Dim jsonObj As Dictionary
Dim jsonRows As Collection
Dim jsonRow As Collection
Dim ws As Worksheet
Dim currentRow As Long
Dim startColumn As Long
Dim i As Long
V_SearchString = "&resultsfrom=0&searchid=XXX&type=customer&join=null&operator=is&fieldname=CUSTENTITYMCCODE&fieldvalue=" & Sheets("INFO").Range("c_customeraccountcode").Value
V_SearchString2 = "&resultsfrom=0&searchid=XXX&type=customer&join=null&operator=is&fieldname=CUSTENTITYMCCODE&fieldvalue=" & Sheets("INFO").Range("c_customeraccountcode").Value
generalQuery "JSON_Netsuite_Cases_Temp", "NetSuite", V_SearchString, , True, "USER", "PASS"
generalQuery "JSON_Netsuite_Cases_Temp", "NetSuite", V_SearchString2, , True, "USER", "PASS"
...
知道如何使用Restlib在Netsuite上执行两次搜索吗?
谢谢
答案 0 :(得分:0)
您是否尝试过一次查询,然后另一次查询?我并不熟悉Restlib,但如果发出两个并发请求,NetSuite UI将阻止第一次搜索。