0
當我通過客戶查詢在線查詢快速通關時,我似乎不斷收到重複項。下面是我的代碼,我想知道爲什麼我多次獲得相同的客戶。我正在使用分頁功能來避免超時。當從QBO向客戶詢問時,我得到重複客戶
Dim tCust As New List(Of Intuit.Ipp.Data.Qbo.Customer)
Dim qcust As New CustomerQuery
qcust.IncludeJobs = False
qcust.LastUpdatedTime = FromDate
qcust.PageNumber = 1
qcust.ResultsPerPage = 10
Dim customers As IEnumerable(Of Intuit.Ipp.Data.Qbo.Customer) = qcust.ExecuteQuery(Of Customer)(GetServiceContext)
While customers.Count > 0
tCust.AddRange(customers)
customers = qcust.ExecuteQuery(Of Customer)(GetServiceContext)
qcust.PageNumber += 1
End While