cancel
Showing results for 
Search instead for 
Did you mean: 

Ten Digits Unique Id generation in MII

former_member206397
Contributor
0 Kudos

Hi All,

Is there any way to generate 10 digits unique id in MII which will never repeat.

Thanks in Advance

Chandan

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Chandan,

the GUID function will give you a 32 digit unique ID in the following format, which is an alphanumeric one with special characters:

f29b8b81-5609-11e1-bb55-e058a77ec828

If you are planning to pass this unique ID from the webpage, you can make use of the Math.random() available in javascript. It gives you a Unique ID in the following format:

0.6167780349126499

you can remove the decimal by replacing it with blank using the string.replace(regexp/substr,newstring) and make use of the random number.

Regards,

Gita

Former Member
0 Kudos

I don't know about 10, but guid will give you 32.

agentry_src
Active Contributor
0 Kudos

Just to provide a little more detail, guid is a function in the Expression Editor in Link Editor for action blocks in the workbench.

Regards,

Mike