

You should just be able to build an XML Document in the form that the Onscreen Reference shows you (and QB is very anal about ordering and character case). I don't know much about XML in VB at all, but I assume there's a generic Document object. All I know is when I tried to generate classes like that for Java, it failed horribly. I'm not even sure they're provided by Intuit, which I suppose explains the lack of support? Anyway, if they operate like I think they would, then you should (and take this with a grain of salt) be able to do a S&R from xmlInvoice to xmlSalesReceipt. Those are quite probably validation classes that were built around the XML. Once this project is over I hope I never have to touch Quickbooks again.Īhh, I see.

QBXML, my preference is to use FC, but the XML sample files are the only thing I've been able to get to work. I can't find any syntax for anything that's not already in the sample code.Īnd with regard to QBFC vs. Installing the SDK yields no intellisense in my IDE, no help appears when I hit F1, and as I crawl through the Developer's Guide and other resources, I cannot find any objects, methods or properties specific to the task of pushing data into QB. I can't even find reference to anything called xmlInvoiceAdd.
#QB SDK APPENDBILLQUERYRQ FILTER CODE#
Now, I'm sure that the code to add a sales receipt is similar, but can I just go through the invoice code and change every instance of "xmlInvoice" to "xmlSalesReceipt"? Well, maybe I can, but the SDK sure doesn't say one way or the other. Set requestIDAttr = xmlInvoiceAdd.createAttribute("requestID") Yeah, the onscreen reference has all the field names and data types for the Sales Receipt, but what I'm after is actual syntax.įor example, in the sample VB program that uses QBXML to add an invoice, you have lines of code like:
