Tips and techniques

This page describes “best practices” for programming with the QuickBooks SDK. It also suggests what to do when you encounter problems before you contact QuickBooks Intuit Partner Platform (IPP) Developer Support.

Best practices

This section offers some friendly advice in the form of best practices with these intentions: to help safeguard your application against possible security exposures, errors, excessive data transport (how to use filters and purposeful construction of messages); and possibly to improve application performance. These best practices are suggestions, not requirements.

They are the outcome of developer experience and are offered in the spirit of encouragement:

Validate requests

The QuickBooks SDK includes an external Validator tool ( qbXMLValidator.exe ) that allows you to validate qbXML documents to ensure that their grammar and syntax adheres to the requirements of the qbXML specification. Similarly, the QBFC Library contains a Verify method for IMsgSetRequest, which allows you to verify requests before DoRequests is called.) The Validator tool is useful during the development cycle, since it helps you isolate invalid requests before you send them to be processed. The request format is also validated automatically when the call to ProcessRequest (or, in the case of QBFC, DoRequests) is made.

If you want more control over validating requests before they are sent to QuickBooks, you can build your own validator into your application. Be sure to validate your document before you report any problems to Intuit Developer Support.

Investigate problems thoroughly

In most cases, you will have undergone various processes in attempting to solve your development problem before you consider contacting IPP Developer Support. However, here are some troubleshooting strategies to include in your investigation that you might not have considered.

Try these approaches before you contact IPP developer support:

Build test cases to make available to developer support

Here are the guidelines to follow in building a test case:

Send a test case and the log file to developer support

If you must contact IPP Developer Support, the developer support engineer will ask you to build a test case according to the guidelines. See “Building a Test Case to Make Available to Developer Support” for details. To proceed speedily in solving the problem, have the test case ready when you contact developer support. Send the test case as qbXML files to QuickBooks via the SDKTest program. Also send the portion of the log file ( qbsdklog.txt ) that pertains to the problem. (You do not have to send the entire qbsdklog.txt file.)