Search code examples
intersystems-cacheintersystemsintersystems-ensemble

How to create a unique GUID in intersystem's cache?


Looking through the documentation I don't see a GUID datatype. Is there a function or something to generate a random GUID? What is it?


Solution

  • $System.Util.CreateGUID()
    

    This doesn't return a data-type however, it's just a string. You can write your own data-type class if you need special validation or conversion between logical/display/ODBC.