Setting Up QuickBooks Online
Setting up QuickBooks Online takes six steps: add the Application, authorize it, create a Record Type for the lookup lists, schedule the syncs, point your invoice fields at the lookups, and add the save actions to your workflow. You need to be a DocMgt administrator, and you need a QuickBooks Online user who is allowed to connect apps to the company (usually the company administrator) for step 2.
Before you start
Decide which QuickBooks Online lists your users will code to: vendors and accounts for bills, customers and items for invoices, and classes, locations or terms if your company uses them. Classes and locations only exist in QuickBooks Online when they are turned on in QuickBooks Online's own settings, so check that first.
Step 1 - Add the Application
- Open Admin and choose Applications.
- Click New.
- Type a Name, such as the company name. Actions use this name to find the right company, so keep it short and do not change it later.
- Set Type to QuickBooks Online.
- Click Save.
With Enterprise Edition you can add one Application per QuickBooks Online company. See Applications for the screen itself.
Step 2 - Authorize the connection
- Open the Application again. The Controls row now shows four buttons.
- Click Authorize. A small window opens on Intuit's sign-in page. If nothing opens, allow pop-up windows for DocMgt in your browser and click Authorize again.
- Sign in to QuickBooks Online, choose the company, and approve the connection.
- The window shows Successfully Linked to QuickBooks Online. Click Close Window.
If the QuickBooks Online administrator is someone else, click Copy Auth Link and send them the link. They must be signed in to DocMgt when they open it.
To check the connection at any time, click Check Status. It shows two answers:
- Auth Active - whether the short-lived access key is current. It lasts about an hour and DocMgt renews it on its own whenever an action runs, so NO here is normal between uses.
- Refresh Active - whether DocMgt can still renew the connection. NO here means the connection has ended and you must click Authorize again.
Intuit ends a connection that goes unused for a long time (currently about 100 days), and when someone disconnects DocMgt inside QuickBooks Online. Revoke Auth ends it from the DocMgt side.
Step 3 - Create the lookup Record Type
The sync actions copy QuickBooks Online's lists into records of one Record Type, often named QBOData. One Record Type holds every list; the Type field on each record says which list it belongs to.
Add these fields to it:
- Type - Vendor, Customer, Account, Item, Class, Location, Term or CustomFields. The sync actions fill it in.
- Id - the QuickBooks Online ID. This is the value that is sent back to QuickBooks Online.
- Name - the name users see and pick.
- FQName - the full name, written parent:child for sub-accounts and sub-items.
- Status - Active or Inactive.
These fields are optional as they are only used for certain types:
- Phone and Email - vendors and customers
- AcctNum and AccountType - accounts
- Description and IsPurchased - items. IsPurchased is Yes when the item has an expense account, which is a handy filter for bill lines.
- DueDays - terms
- SalesCustomField and POCustomField as line item fields - custom fields (see QBO Custom Fields Sync)
Step 4 - Schedule the syncs
- Create an Action Set, for example QuickBooks Sync, and add one sync action for each list you need: QBO Vendor Sync, QBO Account Sync, QBO Class Sync and so on.
- In each sync action, set Record Type to the name of the lookup Record Type. With Enterprise Edition and more than one company, also set Integration Name, and add a Match Fields row (for example a Company field) so each company's records stay apart.
- Open the lookup Record Type, go to Automation, click Add Automation, choose the Action Set and set a nightly schedule. See Automation.
- Optional: create an Add-In that runs the same Action Set, so users can refresh the lists when someone adds a vendor in QuickBooks Online during the day.
Run the Action Set once by hand to load the lists. The first run brings in everything; later runs bring in only what changed since the last run. Leave Sync Type on UPDATED; switch it to ALL only when you want a list read again from scratch. QBO Terms Sync and QBO Custom Fields Sync read their whole list every time.
Synced lists can include inactive entries, marked Inactive in Status, so older records still show a name for a vendor or account that has since been made inactive.
Step 5 - Point the invoice fields at the lookups
On the Record Type you send to QuickBooks Online (for example Invoices), make each QuickBooks field a Record Type Link field to the lookup Record Type: limit it to records of the right Type (Vendor for the vendor field, Account for the line item account field), store the Id, and show the Name. To keep inactive entries out of new entry, also limit it to Status Active and toggle on ENTRY Mode.
Storing the Id matters: QuickBooks Online accepts only its own IDs, not names.
Step 6 - Add the save actions to workflow
Add QBO Bill Save, QBO Invoice Save or QBO Purchase Order Save where the record is ready to go, usually on a workflow button such as Send to QuickBooks on the final approval step. A button gives the user an answer straight away: if QuickBooks Online rejects the record, they see why, fix it and press again. Leave Stop on Error on (the action's Options tab) so a failure stops the step instead of moving the record along.
Each save action works with no mapping at all if your fields use the default names listed in its topic (for a bill: InvoiceNumber, Vendor, Amount, InvoiceDate, DueDate, plus Account, Class, Description and Amount on line items). Add rows under Fields only for fields named differently. Turn on Attach Document(s) to send the invoice image with the bill.
To record the payment, add a Follow Up action on the step after the bill is sent, set it to repeat, and give it two actions: QBO Check Lookup, then Complete Work Item with a rule so it runs only when CheckNumber is not blank. The record then moves on by itself once the bill is paid. See Follow Up Actions.