GET_OBJECT_TYPE

Use the GET_OBJECT_TYPE script function to return the object type of a task. This script function first searches the object in the client in which the script is processed, and then in system client 0000.

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: