GET_OBJECT_TYPE

Use the GET_OBJECT_TYPE script function to return the object type of a task. Make sure that you specify the name of the underlying object. This script function first searches the object in the client in which the script is processed, and then in system client 0.

Tip: Use the :ON_ERROR script statement to define action to take if the object does not exist. For more information, see Script Elements for Error Handling

Syntax

GET_OBJECT_TYPE (Object name)

Parameters

  • GET_OBJECT_TYPE
    Returns the object type of a task
  • Object name
    Name of the object whose type should be retrieved
    Format: script literal or script variable

Return Codes

  • Short name of the object type
    For more information, see Object Types
  • 20223
    The object does not exist

Example

The following example returns JOBP because MM.DAY is a workflow.

:SET &OBJECT_TYPE# = GET_OBJECT_TYPE("MM.DAY")

See also: