# Assigning a customer number/code

**URL:** <https://community.hubspot.com/t/assigning-a-customer-number-code/109137>\
**Category:** CRM\
**Tags:** professional\
**Created:** [June 11, 2024, 4:43pm UTC](https://community.hubspot.com/t/assigning-a-customer-number-code/109137 "2024-06-11T16:43:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KerrinBarker](https://avatars.discourse-cdn.com/v4/letter/k/51bf81/32.png) [@KerrinBarker](https://community.hubspot.com/u/KerrinBarker)\
**Post date:** [June 11, 2024, 4:43pm UTC](https://community.hubspot.com/t/assigning-a-customer-number-code/109137/1 "2024-06-11T16:43:24Z")

</div>

Hi HubSpot Community,

Looking for some support to automatically assign a 4 digit customer number/code to a COMPANY record when a deal is closed won. We cannot use the HubSpot company record ID, as we also have a format (structure) being N+1 for existing customers.

FYI: We use HubSpot Pro

Many thanks,

Kerrin

---

<div class="post-metadata">

**Author:** ![LouiseHare](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/louisehare/32/49547_2.png) [@LouiseHare](https://community.hubspot.com/u/LouiseHare)\
**Post date:** [June 12, 2024, 9:35am UTC](https://community.hubspot.com/t/assigning-a-customer-number-code/109137/2 "2024-06-12T09:35:37Z")

</div>

Hi @KerrinBarker ,

Do you have Operations Hub Professional? If so I believe that you should be able to do this via a custom code action in a workflow.

Thank you,

| [![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/c/2c4c27aa5080ed14205c6de27af8470e3d90a2e7.png)](https://www.linkedin.com/in/louise-hare/) |
| Louise Hare _she/her_ |
| _Freelance HubSpot Expert_ |
| |
| |
| If my reply helped to answer your question please mark it as a solution to make iteasier for others to find! |

---

<div class="post-metadata">

**Author:** ![KerrinBarker](https://avatars.discourse-cdn.com/v4/letter/k/51bf81/32.png) [@KerrinBarker](https://community.hubspot.com/u/KerrinBarker)\
**Post date:** [June 12, 2024, 8:24pm UTC](https://community.hubspot.com/t/assigning-a-customer-number-code/109137/3 "2024-06-12T20:24:18Z")

</div>

No we do not have Ops Hub. Are there any other alternatives?

---

<div class="post-metadata">

**Author:** ![AnnaBaskey](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/annabaskey/32/95517_2.png) [@AnnaBaskey](https://community.hubspot.com/u/AnnaBaskey)\
**Post date:** [November 28, 2025, 9:13am UTC](https://community.hubspot.com/t/assigning-a-customer-number-code/109137/4 "2025-11-28T09:13:32Z")

</div>

Hey Kerrin,

i know this request is a little old. However, I still wanted to give some input which might be helpful! As Louise has already said, custom code action is only possible when you have the right HubSpot subscription level. We have run into this problem with our customers many times which is why we created an integration called “Generate Sequential Numbers” to help with this! There is a 14 day trial, so if you want to check it out feel free to look at the [listing](https://app.hubspot.com/marketplace/500320/listing/generate-sequential-number-workflow-action) or our [documentation](https://baskey.eu/app-documentation/)! It might be of use since it creates sequential numbers and even allows you to add a suffix/ prefix and determine the length of the number.

Hope this helps!
