How to generate random unique id

Hi friends , HOW TO GENERATE RANDOMomly UNIQUEID with only 5 caracters instead of 8 caracteres given by default ??

Solved Solved
0 5 318
1 ACCEPTED SOLUTION

Steve
Platinum 4
Platinum 4

Try:

 LEFT(UNIQUEID(), 5)

or:

 RIGHT(UNIQUEID(), 5)

View solution in original post

5 REPLIES 5

Steve
Platinum 4
Platinum 4

Try:

 LEFT(UNIQUEID(), 5)

or:

 RIGHT(UNIQUEID(), 5)

works perfect , what in case to combine between โ€œIDโ€ and โ€œDATEโ€ that UNIQUEID/TODAY

Iโ€™m afraid I donโ€™t understand.

I use โ€œconcatenateโ€ function to combine ID and DATE thank you Steve

Hello!

Try

LEFT([ID]&[DATE]), 5)

OR

RIGHT([ID]&[DATE]), 5) 

Top Labels in this Space