Home › Forums › CoreObjX / DB › Look Up One Account
Tagged: account name, account number
This topic contains 1 reply, has 2 voices, and was last updated by Tom Crawford 1 year, 1 month ago.
When I call this in C#: Account act2 = QBc.Company.Accounts.Item(“Inventory”);
act2 is always returned null, even though “Inventory” is a valid account in the data base I am using.
Have I set this up incorrectly?
I have also tried bool actexists = QBc.Company.Accounts.get_ItemExists(“Inventory”) but it also returns false.
However if I use QBc.Company.Accounts.GetAll() and then step through each one, I do eventually find the matching “Inventory” account.
I would prefer not to have to load the entire chart of accounts every time I have to validate an account.
You can use the GetByFulllName method to retrieve a specific account.
You must be logged in to reply to this topic.
Copyright © 2013 Synergration Inc