Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

Buy Support
Incidents

If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:

Click Here
If you can't login and post questions or you are having trouble viewing forum posts:
Click Here
Callback
Support

If you live in USA, UK, Canada, Australia or New Zealand, you can leave us details on your question and request us to call you back and discuss them with you personally  (charges apply).

Click Here
 
Buy Support
Incidents
If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:
Click Here

Forum : Inserting records in ITEM tableSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC v7 Forum

 New Topic 
 
 Post Reply 
[1]  
 Inserting records in ITEM table 
 Author   Message 
  Jay Talbott 
  
 Group: Members 
 Posts: 12 
 Joined: 2008-01-30 
 Profile
 Posted : 2008-07-15 12:23:05

I would have thought this was simple (it probably is), but I am having a problem adding records to the item table.

I have added records to other tables (customer, invoice header, invoice lines) but for some reason cannot get the items added.

I have use sp_columns item in VB Demo 32 and see which fields are required on insert and which are "Nullable", although I am not sure if all required fields need data, or if fieldname="" is acceptable.

Can you tell me which fields are required as a minimum? From what I can tell, the following are required:

Name 
Description 
IncomeAccountRefFullName 
SalesOrPurchasePrice 
SalesOrPurchasePricePercent 
SalesOrPurchaseAccountRefListID 
SalesOrPurchaseAccountRefFullName 
SalesAndPurchaseIncomeAccountRefListID 
SalesAndPurchaseIncomeAccountRefFullName 
SalesAndPurchaseExpenseAccountRefListID 
SalesAndPurchaseExpenseAccountRefFullName 
IncomeAccountRefListID 
IncomeAccountRefFullName 
COGSAccountRefListID 
COGSAccountRefFullName 
AssetAccountRefListID 
AssetAccountRefFullName

Am I missing something?

Thanks in advance.

Jay

 

 
Jay Talbott 
 
  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-07-16 08:13:58

The ITEM table is a combined (read only view) list of all Item tables in QuickBooks: ItemInventory, ItemNonInventory, ItemOtherCharge, ItemInventoryAssembly, ItemService, ItemFixedAsset, and ItemGroup; with minimum common fields.

Inserts and updates are actually done using the ItemInventory, ItemNonInventory, ItemOtherCharge, ItemInventoryAssembly, ItemService, ItemFixedAsset, or ItemGroup tables.

See: How do I add a Inventory Item using QODBC? 
        How do I insert data into ItemService? 
        How do I insert data into ItemNonInventory? 
        How do I create a Item Assembly (ItemInventoryAssembly)? for more.

 

  Top 
  Jay Talbott 
  
 Group: Members 
 Posts: 12 
 Joined: 2008-01-30 
 Profile
 Posted : 2008-07-16 11:13:51

Thanks, Tom. I am sure that will take care of it.

Is there any way that I should have known that "ITEM table is a combined (read only view) list of all Item tables in QuickBooks"? Or is that part of what they tell you when they show you the secret handshake ? <grin>

 

Jay

 

 
Jay Talbott 
 
  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-07-16 11:27:01
No, QODBC is self documenting, see: Where are the schema rules for using QODBC? How do I use sp_columns?  

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to