docs

Home Templates Classes Guides

Application Authorization, App ID, and App Name

When your application first communicates with QuickBooks Desktop, the user must authorize it inside the QuickBooks UI. This is a required step for all desktop API integrations.

The wrapper simplifies this by generating a small first run authorization routine. It prompts the user to switch to QuickBooks and approve access. If permission is not granted, your program terminates. Once the user approves, the wrapper records that the app has been authorized and does not prompt again.


What are AppID and AppName

The values QBAppID and QBAppName identify your application to QuickBooks.

Example values:

QBAppID   = 'Clarion.QBWrapper.Test'
QBAppName = 'Clarion QB Wrapper Test Tool'

You can set these in the global template prompts or assign them in code before opening a connection.


Where to set AppID and AppName

Clarion example:

! Set once during startup before connecting
QBConnectionManager.QBAppID   = 'YourCompany.YourProduct'
QBConnectionManager.QBAppName = 'Your Product Name'

First run authorization flow

  1. Your app starts with the ProSeriesQBWrapperGlobal extension enabled.
  2. The wrapper’s authorization routine runs if the app is not yet authorized.
  3. The routine instructs the user to switch to QuickBooks. On the Windows taskbar, the QuickBooks icon will blink to request attention.
  4. The QuickBooks authorization dialog appears.
  5. If the user approves, the wrapper records that authorization has been granted so the routine does not run again. This indication is stored in the QuickBooks Settings File INI file named on the global extension tab (default .\QBSettings.ini. )
  6. If the user denies or closes the dialog without approving, your program exits. This prevents confusing failures later that are caused only by missing permission.

The authorization record persists unless permissions are cleared or the environment changes in a way that causes QuickBooks to treat the app as different.


Completing the authorization in QuickBooks


How to review or change permissions later

In QuickBooks:

  1. Open Edit > Preferences.
  2. Select Integrated Applications.
  3. Open the Company Preferences tab.

You will see the list of authorized applications. From there you can remove access or adjust options, including whether the app can run when QuickBooks is not open.


Tips for a smooth first run


Home Templates Classes Guides