Advertisement
IDNPeterL

IPP .NET DevKit v2 - QBD Status of Customer in Error State

Oct 29th, 2012
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.80 KB | None | 0 0
  1. Intuit.Ipp.Data.Qbd.CustomerQuery customersInErrorStateQuery = new Intuit.Ipp.Data.Qbd.CustomerQuery();
  2. customersInErrorStateQuery.ItemElementName = Intuit.Ipp.Data.Qbd.ItemChoiceType4.StartPage;
  3. customersInErrorStateQuery.Item = "1";
  4. customersInErrorStateQuery.ChunkSize = "500";
  5. customersInErrorStateQuery.ErroredObjectsOnly = true;
  6. List<Intuit.Ipp.Data.Qbd.Customer> customersinErrorState = customersInErrorStateQuery.ExecuteQuery<Intuit.Ipp.Data.Qbd.Customer>
  7. (context).ToList();
  8.  
  9. SyncStatusRequest syncStatusRequest = new SyncStatusRequest();
  10. syncStatusRequest.ErroredObjectsOnly = true;
  11. syncStatusRequest.NgIdSet = new NgIdSet[] { new NgIdSet { NgId = customersinErrorState[0].Id.Value, NgObjectType = objectName.Customer } };
  12. SyncStatusResponse[] response = dataServices.GetSyncStatus(syncStatusRequest);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement