# Custom Code - Automatic Sequential Numbering for Deals

**URL:** <https://community.hubspot.com/t/custom-code-automatic-sequential-numbering-for-deals/102003>\
**Category:** Data Hub\
**Created:** [March 7, 2024, 7:05pm UTC](https://community.hubspot.com/t/custom-code-automatic-sequential-numbering-for-deals/102003 "2024-03-07T19:05:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ARoberts\_CC](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@ARoberts\_CC](https://community.hubspot.com/u/ARoberts_CC)\
**Post date:** [March 7, 2024, 7:05pm UTC](https://community.hubspot.com/t/custom-code-automatic-sequential-numbering-for-deals/102003/1 "2024-03-07T19:05:30Z")

</div>

Does anyone have custom code already created for automatic sequential numbering for deals I could use? I’d like to add this code to a workflow via Operations Hub to auto-assign a job number to every newly created deal for accounting purposes. Thank you in advance!

---

<div class="post-metadata">

**Author:** ![DianaGomez](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dianagomez/32/48035_2.png) [@DianaGomez](https://community.hubspot.com/u/DianaGomez)\
**Post date:** [March 8, 2024, 10:16am UTC](https://community.hubspot.com/t/custom-code-automatic-sequential-numbering-for-deals/102003/2 "2024-03-08T10:16:28Z")

</div>

Hi [@ARoberts\_CC](https://community.hubspot.com/t5/user/viewprofilepage/user-id/723853),

Thanks for reaching out to the Community!

After reviewing this topic, I came across an existing conversation in the community where various workarounds are provided. I encourage you to review them, as I believe they will be beneficial in helping you achieve your objective.

[Deals - Automatic Sequential Numbering](https://community.hubspot.com/t5/CRM/Deals-Automatic-Sequential-Numbering/td-p/688685).

Best,

Diana

---

<div class="post-metadata">

**Author:** ![Bakertc](https://avatars.discourse-cdn.com/v4/letter/b/b9bd4f/32.png) [@Bakertc](https://community.hubspot.com/u/Bakertc)\
**Post date:** [March 28, 2024, 2:13pm UTC](https://community.hubspot.com/t/custom-code-automatic-sequential-numbering-for-deals/102003/3 "2024-03-28T14:13:08Z")

</div>

Have you considered using the autogenerated _Record ID_ that Hubspot creates? It’s the first column whenever you export a deal view.
