Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate unique ID field in module in sugarcrm

Tags:

sugarcrm

Want to generate the unique ID field in the module which will automatically generate the unique IDs. Can anyone help help for this ? Thanks

like image 226
mahi Avatar asked Oct 03 '11 12:10

mahi


People also ask

How are unique ids generated?

Version-1 UUIDs are generated from a time and a node ID (usually the MAC address); version-2 UUIDs are generated from an identifier (usually a group or user ID), time, and a node ID; versions 3 and 5 produce deterministic UUIDs generated by hashing a namespace identifier and name; and version-4 UUIDs are generated ...

What is unique ID in JavaScript?

Introduction to JavaScript UUID. A universally unique identifier (UUID) is an identifier of the 128-bit value that is used in the construction of software. Each bit present in the value differs by the meaning as several variants are considered.


1 Answers

There is a function inside of SugarCRM called create_guid() which does this exact thing.

like image 77
jmertic Avatar answered Nov 08 '22 14:11

jmertic