The problem
Your integration or import keeps adding a new record every time it runs, so you end up with three copies of the same customer, invoice or work order.
Why it happens
The integration adds records without telling Quickbase how to recognize one that already exists. If a sync runs twice, or a failed call is retried, every run creates new records.
The fix: upsert with a merge field
- Add a field for the other system’s ID, for example “QuickBooks Invoice ID” or “Salesforce Account ID”.
- Mark that field as unique in its field properties. Quickbase needs a unique field to merge on.
- Send writes as an upsert using the RESTful API’s upsert records call, with
mergeFieldIdset to that field’s ID:
{
"to": "bxxxxxxxx",
"mergeFieldId": 12,
"data": [
{ "12": { "value": "INV-10482" }, "7": { "value": "Paid" } }
],
"fieldsToReturn": [3, 12]
}
If a record with that ID exists, it’s updated. If not, it’s created.
Gotchas we see
mergeFieldIdmust be a number, not a string. Sending"12"instead of12causes errors.- If the merge field isn’t truly unique, the upsert can’t match records reliably and you get new records instead of updates.
- Check the response. The upsert can succeed for some records and fail for others, so read the per-record errors instead of assuming everything worked.
How to prevent it
Every integration should have a clear matching key on both sides, stored on the record, before anything is built. Never match on names.