Serial contracts (or any object) in HubSpot!

RevHops
Participant | Platinum Partner
Participant | Platinum Partner

We had a client who had a unique ask. They needed a way to assigned serialized contract numbers for clients.

 

What they needed:

  1. Contract numbers that increase by 1 for each new contract (ex: 001, 002, 003, etc).
  2. Support for contracts for multiple countries that have different contract number prefixes.

How we fixed it:

  1. Created a Country Contract prefix property that was filled via workflow depending on which country's sales pipeline was used.
  2. Created a contract counter property that stored the contract number by itself
  3. A contract number field (where we stored the final output)
  4. A workflow with a custom code action that acts upon closed won deals. The code checks to see what the current highest number is for all contracts, then writes the new number by adding one to it.
  5. Then the workflow takes the country prefix and the contract counter and hyphenates them together as the client required (ex: US-001, US-002, NL-001, NL-002, etc)

Figured I'd share this genearl setup here in case it's helpful to anyone!

 

1 Reply 1
chighsmith
Community Manager
Community Manager

Hi @RevHops,

Thank you for sharing this! 

Cassie, Community Manager

 

 





loop


Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.

Learn More




0 Upvotes