Search code examples
c#quickbooksintuit-partner-platform

Pulling all Customers modified in QuickBooks since certain datetime using .NET Dev Kit


IDS proper accepts querying by StartCreatedTMS/EndCreatedTMS to retrieve objects modified in QuickBooks only - not data services.

The IPP .NET Dev Kit seems to only expose the CDCAsOf property though. Am I missing something and/or is there a way to query by StartCreatedTMS for QB Desktop via the .NET Dev Kit?


Solution

  • Intuit.Ipp.Data.Qbd.CustomerQuery customerQuery = new Intuit.Ipp.Data.Qbd.CustomerQuery();
    customerQuery.ItemsElementName = new ItemsChoiceType4[] { ItemsChoiceType4.StartCreatedTMS, ItemsChoiceType4.EndCreatedTMS };
    customerQuery.Items = new object[] { new DateTime(2012, 01, 01), new DateTime(2013, 01, 01) };
    List<Intuit.Ipp.Data.Qbd.Customer> customersList = customerQuery.ExecuteQuery<Intuit.Ipp.Data.Qbd.Customer>(context).ToList();