Sequential Number Generator within HubSpot, Our solution to a common problem

Hi all,

I’m Jack, and I build HubSpot apps under HubAptly. I wanted to share what we’ve learned running Sequential Number Generator, because numbering records sounds simple until a workflow is doing it thousands of times an hour.

Why we built it

HubSpot gives every record an ID, but it’s not one you’d put on an invoice. Most businesses need proper running numbers: INV-2026-0001, PRJ-0452, customer numbers that carry on from an old system. Without them, it’s spreadsheets or numbering by hand and hoping nobody doubles up.

What Sequential does (for anyone new)

You add it as a step in any workflow, and every record that enrols gets the next number in its sequence. It works on contacts, companies, deals, tickets, quotes, line items, products and projects, plus custom objects on Pro and above.

You choose the counter from a dropdown in the workflow action, and each counter can have its own prefix and suffix (including the year and month, so INV-2026-0001 builds itself), a fixed length padded with zeros, and a reset daily, monthly or yearly. Numbers are never reused, so a number on a sent invoice stays unique.

What we learned

HubSpot retries workflow actions, and numbering has to survive that. If HubSpot doesn’t get a quick enough response it sends the same action again. We now recognise those retries and give the record back the number it already received, so a busy workflow can’t skip numbers or give one record two.

“Deals” and “DEAL” are the same object to you, but not to every part of HubSpot. Settings and workflows describe objects differently, and early on that could create a second counter for the same property. Matching HubSpot’s own object IDs everywhere fixed it.

Migrations look nothing like normal use. Most portals number a steady trickle of new records. Teams moving from another system enrol tens of thousands of records in one go. Sequential issued close to 200,000 numbers in the last 30 days, and we moved it onto Google Cloud so those spikes are handled rather than queued up for hours.

Customers decide the roadmap. Projects support came straight from a customer request, and Orders is next for the same reason.

Where we’re headed

Orders support, and more control for teams numbering large volumes.

If you want to try it, the free plan includes 25 numbers a month, enough to set up a counter and run a real workflow before committing.

And if you’re already using our Sequential Numbering app: thank you. Every bug report and feature request has made it more reliable.

Find us on the marketplace here - HubSpot Marketplace

Jack, HubAptly

1 Like