GET_OBJECT_TYPE

Script function: Returns a task's object type

Syntax

GET_OBJECT_TYPE (Object name)

Syntax

Description/Format

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 Objects.
  • 20223
    The object does not exist

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.

Example

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

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

See also:

seealso

Script Elements for Workflows and Tasks in Workflows