Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Previous sectionNext section

GUIDs (Globally Unique Identifiers)

Work with GUIDs (Globally Unique Identifiers).

Background Information

A GUID (globally unique identifier) is a unique reference number used as an identifier.

Available Tools

GUIDENABLED class parameter

Enables you to generate a GUID for each instance of the class. See “Object Synchronization” in Using Caché Objects.

This class is a persistent class that gives you access to GUID,OID value pairs. This class can be queried using SQL. This class presents examples.

Availability: All namespaces.

%GUID class

Provides utility methods for GUIDs. These include:

  • %FindGUID()

  • AssignGUID()

  • And others

Availability: All namespaces.

Includes the following method:

  • CreateGUID()

Availability: All namespaces.


The special variable $SYSTEM is bound to the %SYSTEM package. This means that (for ObjectScript) instead of ##class(%SYSTEM.class).method(), you can use $SYSTEM.class.method().