Generate a unique, random number

brad_rotl

Member
Is there a way to generate a unique, random 5-digit number, and then assign this to a property in HubSpot? I've looked at some of the other similar requests on this forum, but none of them seem to deal with generating a unique number every time - so this number can never be duplicated, and should always be 5 digits.
 
P

Pabblymember11

Guest
Hey @brad_rotl

You have the option to employ the Number Formatter action step within your workflow, which is available at no cost. By utilizing the Random Between function in conjunction with this step, you can generate a random five-digit number accordingly.

2023-09-11_17h02_27.png
 

brad_rotl

Member
Hi @Supreme - thank you for that. However, I don't believe this solves the requirement of having the number be unique every time? This might produce some duplicate numbers...
 
P

Pabblymember11

Guest
- thank you for that. However, I don't believe this solves the requirement of having the number be unique every time? This might produce some duplicate numbers...
Apart from that, there's no other solution available. Nevertheless, you can experiment with the Number Formatter: Counter action step, which will produce a sequential number with each new execution.

2023-09-12_10h19_17.png
 
Top