GET_OH_IDNR

Each object in Automic Automation is assigned a unique internal number (OH_IDNR) when it is created. Use the GET_OH_IDNR script function to retrieve this number for a specific object.

Syntax

GET_OH_IDNR (Object Name)

Parameters

Parameter Description Format
Object Name Name of the object. Script literal or script variable

Return Codes

This script function returns the following values:

  • The internal number of the object
  • 0 if the object does not exist

Examples

The following example retrieves the internal number of an object called MM.DAY and stores it in a script variable:

: SET &RET# = GET_OH_IDNR ("MM.DAY")

See also: