Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Retrieve all QBD Customers
- //Documentation: http://goo.gl/XsxjR
- List<Intuit.Ipp.Data.Qbd.Customer> customerSet = new List<Intuit.Ipp.Data.Qbd.Customer>();
- List<Intuit.Ipp.Data.Qbd.Customer> customerQueryResult = null;
- int startPage = 1;
- do
- {
- Intuit.Ipp.Data.Qbd.CustomerQuery qbdCustomerQuery = new Intuit.Ipp.Data.Qbd.CustomerQuery();
- qbdCustomerQuery.ChunkSize = "100";
- qbdCustomerQuery.ItemElementName = ItemChoiceType4.StartPage;
- qbdCustomerQuery.Item = startPage.ToString();
- customerQueryResult = qbdCustomerQuery.ExecuteQuery<Intuit.Ipp.Data.Qbd.Customer>(context).ToList<Intuit.Ipp.Data.Qbd.Customer>();
- if (customerQueryResult.Count > 0) { customerSet.AddRange(customerQueryResult); }
- startPage++;
- } while (customerQueryResult.Count > 0);
- int customerCount = customerSet.Count;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement