Create a random number which is not in a list - "booking-number"


I want to create a random number with a specific length of characters. This number should not be in a list of numbers, so it is unique.
The number is needed for a booking and should be saved in booking’s bookingnumber.

I have tried everything I know but couldn’t find a solution. It would be great if you could help me… Thank you!!

You could try using the thing’s unique ID, or a portion of it.

1 Like


Complementing @robert great suggestion you may find this video by @romanmg useful > Create a Random ID for your Data

1 Like

Thanks @cmarchan.

@romanmg implemented this for me on a previous project, and it worked flawlessly.

1 Like