Last active
December 15, 2015 10:38
-
-
Save IntuitDeveloperRelations/5246669 to your computer and use it in GitHub Desktop.
IPP .NET DevKit v2 - QBD - Retrieve Active QBD Customers with a minimum balance #DotNetDevKitV2 #Customer #QBD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// #DotNetDevKitV2 #Customer #QBD | |
//Retrieve Active QBD Customers with a minimum balance | |
//Documentation: http://goo.gl/jUdxR | |
var oauthValidator = new OAuthRequestValidator(accessToken, accessTokenSecret, consumerKey,consumerSecret); | |
var context = new ServiceContext(oauthValidator, realmId, IntuitServicesType.QBD); | |
var commonService = new DataServices(context); | |
var qbdCustomerQuery = new Intuit.Ipp.Data.Qbd.CustomerQuery | |
{ | |
ActiveOnly = true, | |
MinimumBalance = new decimal(500000), | |
MinimumBalanceSpecified = true | |
}; | |
var qbdFilteredCustomers = qbdCustomerQuery.ExecuteQuery<Intuit.Ipp.Data.Qbd.Customer>(context).ToList<Intuit.Ipp.Data.Qbd.Customer>(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment