AsklingDocs

How a merge works

What it does

  • Merges one pair when you click Merge: the company under Merged in goes into the company under Kept.
  • Plain code does it, step by step, and checks before and after.
  • Runs one merge at a time, never in parallel.
  • Sends the merge to HubSpot once, never twice.

The six steps

  • Check the click. At most 10 pairs, and 3 in your first merge approval. No company twice in one click. A protected or customer pair goes alone, with the tick box above Merge ticked.
  • Read both companies again in HubSpot, right before the merge. If the name, domain, owner, lifecycle stage, billing links or the contact or deal counts changed, nothing is merged. The pair shows Changed in HubSpot since Askling looked.
  • Save a snapshot of both companies: all their company values and the ids of everything linked to them. It is what Undo a merge rebuilds from, for 90 days.
  • Write the audit line, then merge. Askling asks HubSpot to merge, once.
  • Check the result, for up to 30 seconds, because HubSpot moves the contacts and deals a moment after the merge. The surviving company's domain, owner, lifecycle stage and billing links must equal the kept company's (or the other's where one was empty). It must hold every contact and deal of both, each once. If not, the merge shows Merged, check this with what differs, and the rest of the batch stops.
  • Write the closing audit line: merged A into B, surviving id C, and the snapshot ids.

Check it worked: the logbook (and the audit log) has the closing audit line for the pair, and the merge card reads Merged. 3 contacts and 4 deals kept.

Keep the other one, under the tiles on the card, changes none of this. The merge runs the same way with the company you chose as the kept one, and the logbook says who chose. See Duplicates configuration and which company stays.

How to use it

You need first

  • Profile: Admin. A Non admin sees Only an admin can approve a merge. instead of Merge.
  • Know this: a merge can be undone for 90 days, see Undo a merge. Merge asks for no second confirm: the line above it, A merge can be undone for 90 days., says so. A customer or protected pair needs its tick box first.

Merge a pair

  1. Open Data quality, then Duplicates. The pair at the top is the merge card, see The merge card.
  2. Optional: click Open on a row in Up next (the other pairs) to bring it into the card.
  3. For a customer or protected pair, tick the box above Merge.
  4. Click Merge on the card.
  5. Leave the card open. The navy line turns to Merging now, without a reload.
  6. Click Next pair to go on, or open the kept company from the card and check it.

Check it worked: the card's line reads Merged. 3 contacts and 4 deals kept. with View snapshot, and the merge shows under Done with an Undo button.

To send several sure pairs at once, click Merge all under We are sure; see Merge in bulk.

What it does not do

  • It never merges without a person's click.
  • It never merges a hands off company (a company your Protection rules set to read only), and never merges a billing linked company away.
  • It never retries a merge. If HubSpot does not answer clearly, the pair shows Could not confirm the result and you check the company.
  • It does not undo a merge by itself. Undo on the Done card does that, for 90 days. See Undo a merge.

Why it works this way

HubSpot cannot split a merged company. Every step before the merge makes sure it is the merge you saw. The snapshot lets Askling build the company again if you undo the merge.

Common questions

Why only 3 pairs the first time? So you can check the first merges in HubSpot before approving more. After the first merge, up to 10 pairs per click.

Why can a protected pair not go with others? A protected company (for example one with an open deal) or a customer needs its own look. The tick box above Merge makes that look explicit.

What happens while Askling is paused? Nothing is merged. Approved pairs wait and run when Askling is active again.

Does the surviving company keep its id? Not always. HubSpot may give the merged company a new id. Askling finds it and shows it under Kept in the Done list on the Duplicates page.

What happens to findings that named the old companies? They now say which company the old one was merged into.

Can a merge stop halfway through a batch? Yes. The batch stops at the first merge that did not finish cleanly; the remaining pairs stay approved and wait.

What does Merged. 3 contacts and 4 deals kept. mean? The merge went through and Askling read the result: everything from both companies is on the company that stays.

What does Merged, but check this mean? The merge went through, has no Reject, and something on the kept record still differs after the wait. Compare it with View snapshot on this page, or undo the merge. See more on this message.

What does Not merged. See the logbook for why. mean? The merge did not happen: the logbook row reads HubSpot refused: CODE message, or Could not confirm the result. Don't approve again; check the record. There is no Retry. Check both companies in HubSpot, then click Run now. Put back for review shows only when the merge stopped before anything was sent to HubSpot; otherwise Askling answers Only a merge that stopped before anything was sent to HubSpot can be put back for review. See the logbook for what happened.

What if three or more companies are the same company? Askling picks one company that stays and proposes one pair for every other company, all into that company. It is in several pairs, so you merge them one at a time. The card says 3 pairs, merge one by one, and two pairs of the group in one click are refused with merge_ids_repeated.

When something goes wrong

SymptomCauseWhat to do
Changed in HubSpot since Askling lookedA company changed after the proposalClick Run now on the Duplicates page for a fresh pair. See merge_changed
Merged, check thisThe merge happened and the kept record differs from what it should holdCompare it with View snapshot and fix it by hand. See more on this message
This merge already happened in HubSpot, so it cannot be rejected. Undo it on the Duplicates page, in the Done list.The merge went throughUndo it under Done, or compare the kept record with View snapshot. See more on this message
Could not confirm the resultHubSpot did not answer clearlyDo not approve again. Check the company in HubSpot
One of the companies was already mergedIt was merged in HubSpot meanwhileNothing to do. See more on this message