Generate a unique, random number

Status: Closed · Asked by brad_rotl on · 0 views

brad_rotl — Question ·

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.

Pabblymember11 — Reply ·

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.

brad_rotl — Reply ·

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...

Pabblymember11 — Reply ·
- 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.

brad_rotl — Reply ·

Thank you, @Supreme - that looks like it might do the job well enough

Back to all forum threads · Log in to reply