ID Spaces
ID spaces describe what area of the application the object is located in. Objects sharing an ID space cannot have the same ID, whereas objects in different ID spaces can have the same ID. When referencing a particular object, it is important to know what ID space the object is located in. Otherwise, a token expression to get that object might cause an error or returned unexpected results.
ID Space |
Scope |
|
ACCESSPROFILE |
|
CLASSCONFIG |
|
DEFAULTS |
|
GROUP |
|
CUSTOM_PROPERTY |
|
NODE |
|
NODEDATAIMPORT |
|
NODETYPE |
|
ORGANISATION |
|
CUSTOM_PERIOD |
|
EXTERNALRESOURCE |
|
ROOT |
|
ACTIONPLAN |
|
SHAREDWEB |
|
TEMPLATECATEGORY |
|
USER |
Note
For most objects, right-clicking the object in Configuration Studio and selecting Template Listing
will display token expressions containing the ID space of the object.
get
The get()
method can be used to search for an object within a specific ID space. It is given an ID in the form of a string,
and it will return the object with that ID or MISSING
if no object is found.
Syntax |
Return Value |
|
The object with id |
- string
The ID of the object to search for
o.get("100") // Returns the Organization with ID 100
t.get("12345") // Returns the object with ID 12345