IDNPeterL

IPP .NET DevKit v2 - QBD InvoiceQuery - ContactIdSet

Jun 12th, 2012
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  1. //Retrieve QBD Invoices by Customer ID
  2. //Documentation: http://goo.gl/daiyz
  3.  
  4. InvoiceQuery invoiceQuery = new InvoiceQuery();
  5. IdType[] customerIdType = new IdType[] { new IdType() { idDomain = idDomainEnum.QB, Value = "792" } };
  6. invoiceQuery.Item1 = new IdSet() { Id = customerIdType };
  7. invoiceQuery.Item1ElementName = Item1ChoiceType4.ContactIdSet;
  8. List<Intuit.Ipp.Data.Qbd.Invoice> invoicesByCustomer = invoiceQuery.ExecuteQuery<Intuit.Ipp.Data.Qbd.Invoice>(context).ToList();
Advertisement
Add Comment
Please, Sign In to add comment