# Unique 5 digit Ticket ID

**URL:** <https://community.hubspot.com/t/unique-5-digit-ticket-id/144982>\
**Category:** Tickets & Conversations\
**Tags:** starter\
**Created:** [January 15, 2026, 2:46pm UTC](https://community.hubspot.com/t/unique-5-digit-ticket-id/144982 "2026-01-15T14:46:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cclark2](https://avatars.discourse-cdn.com/v4/letter/c/a88e57/32.png) [@cclark2](https://community.hubspot.com/u/cclark2)\
**Post date:** [January 15, 2026, 2:46pm UTC](https://community.hubspot.com/t/unique-5-digit-ticket-id/144982/1 "2026-01-15T14:46:48Z")

</div>

Hello,Is it possible to create a unique Ticket ID field thats limited to 5 digits that will be automatically updated when a new ticket is created? Like the record ID but we need this to be shorter.

---

<div class="post-metadata">

**Author:** ![Berangere](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/berangere/32/220784_2.png) [@Berangere](https://community.hubspot.com/u/Berangere)\
**Post date:** [January 16, 2026, 8:02am UTC](https://community.hubspot.com/t/unique-5-digit-ticket-id/144982/2 "2026-01-16T08:02:36Z")

</div>

Hey @cclark2 and Happy Friday!  
Great question, thanks for asking the HubSpot Community!  
I’d like to share similar threads that might help you:  
- The solutions from @karstenkoehler and @CophieSollins on this post “[How do I create field that sets up a unique identify number](https://community.hubspot.com/t5/Tickets-Conversations/How-do-I-create-field-that-sets-up-a-unique-identify-number/m-p/718274)”  
- The solution from @louischausse on this post “[Creating custom object with unique ID](https://community.hubspot.com/t5/CRM/Creating-custom-object-with-unique-ID/m-p/818864)”  
If these threads don’t help for what you exactly need, I’d suggest to add an upvote and comment on this Idea: “[Automate Ticket ID](https://community.hubspot.com/t5/HubSpot-Ideas/Automate-Ticket-ID/idi-p/850709)”.  
I hope this helps!  
Have a wonderful weekend!  
Bérangère

---

<div class="post-metadata">

**Author:** ![Gelena](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gelena/32/69256_2.png) [@Gelena](https://community.hubspot.com/u/Gelena)\
**Post date:** [January 16, 2026, 4:44pm UTC](https://community.hubspot.com/t/unique-5-digit-ticket-id/144982/3 "2026-01-16T16:44:35Z")

</div>

Yeah, we use the add-on sequential for this but we have to pay extra money for it.

---

<div class="post-metadata">

**Author:** ![Berangere](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/berangere/32/220784_2.png) [@Berangere](https://community.hubspot.com/u/Berangere)\
**Post date:** [January 21, 2026, 6:02pm UTC](https://community.hubspot.com/t/unique-5-digit-ticket-id/144982/4 "2026-01-21T18:02:00Z")

</div>

Hi @Gelena and thanks for sharing this with the Community!  
Do you have a link to the add-on your are referring to please, that might help @cclark2!  
Thanks and have a lovely day!  
Bérangère

---

<div class="post-metadata">

**Author:** ![d-lupo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/d-lupo/32/31044_2.png) [@d-lupo](https://community.hubspot.com/u/d-lupo)\
**Post date:** [January 22, 2026, 4:32pm UTC](https://community.hubspot.com/t/unique-5-digit-ticket-id/144982/5 "2026-01-22T16:32:08Z")

</div>

Hi @cclark2,

Natively in HubSpot there isn’t a stable, guaranteed-unique way to auto-generate a 5-digit Ticket ID on creation.

If you need this to be reliable, you’ve basically got two solid options:

1. **Use an app/add-on**  
There are apps/integrations that handle custom ID generation and uniqueness for you. This is the quickest route if you want to avoid custom engineering.
2. **Build a small serverless function to issue IDs atomically**  
Create a serverless endpoint backed by a datastore that supports atomic operations.  
Your HubSpot workflow would:  
- Trigger on ticket creation  
- Call your function to reserve the next ID atomically  
- Write that value back to the ticket property via API or Workflow Action  
This requires some development, but it’s the proper way to guarantee uniqueness and avoid race conditions.

One important caveat: a 5-digit numeric ID only allows 100,000 combinations (00000–99999), so you’ll eventually either need a reuse strategy, a prefix/namespace (e.g., year), or more digits if you need long-term uniqueness.  
Did my post resolve your question? If so, please consider **marking it as the accepted solution to help others in the community.**  
Kind regards  
Dennis
