Trigger Macro Categories

The following tables list macros in categories. These categories are referenced later for each trigger supported event. Standard macros are available to programs used for all trigger events.

Trigger programs have access to Intrinsic Macros, as well as others that are applicable to the specific event.

Macro (and RPE variable) values remain the same between activation of the check program, the override program, and the action program. You need to take care when interpreting the meaning of macros. For example, there are macros called OWNER and NEWOWNER for the changeowner event, which makes clear sense for the check program and override program, but by the time the action program executes, the owner may have changed. No additional macro called OLDOWNER is necessary, but the action program must use OWNER to mean "old owner" and NEWOWNER to mean "current owner."

Standard Macros
Macros Meaning
TIMESTAMP The current date/time
EVENT Most recent transaction performed. EVENT for triggers will equal any of the supported trigger events.
Context/Access Macros
Macro Meaning
USER Current user
ACCESSFLAG Access flag (True if USER will be allowed to perform event)
CHECKACCESSFLAG Check access flag (False when access is not checked, such as during import)
ACCESS The current access being checked
RULEUSER The user for which a rule is defined
CHECKEDUSER The current user being checked

(This macro can only be evaluated in the context of an access filter.)

CHECKEDUSER_PRJ The projects of CHECKEDUSER
CHECKEDUSER_ORG The organizations of CHECKEDUSER
CHECKEDUSER_ROLE The roles of CHECKEDUSER
Business Object Macros
Macro Meaning
Business Object Identification Macros Object Identifiers
OWNER Object Settings, descriptions, and IDs
DESCRIPTION
CURRENTSTATE
ENFORCEDLOCKINGFLAG
LOCKFLAG
LOCKER
POLICY
PHYSICALID
LOGICALID
MAJORID
VERSIONID
State Macros
Macro Meaning
ISENABLED Boolean State Flags
ISDISABLED
ISOVERRIDDEN
ISCURRENT
ISREVISIONABLE
ISVERSIONABLE
HASSCHEDULEDATE
HASACTUALDATE
AUTOPROMOTE
Signature Macros
Macro Meaning
SIGNATURE Current Signature Name
ISSIGNED Boolean Signature Flags
ISAPPROVED
ISREJECTED
ISIGNORED
EXISTINGSIGNER If signed, the signer's Name.
EXISTINGCOMMENT Associated comment.
Relationship Macros
Macro Meaning
RELTYPE Relationship Name
RELID Relationship ID, available for all relationship trigger events.
PHYSICALID The physical ID of the relationship
LOGICALID The logical ID of the relationship
MAJORID The major ID of the relationship
FROMMEANING From side meaning
FROMTYPES From business Types allowed (excluding child Types)
FROMALLFLAG Boolean flag - True if all business Types allowed
FROMREVACTION Revision action of Object at From end.

Value=Float, Replicate, or None.

FROMCARD Cardinality of From connection.

Value=One or N

FROMPHYSICALID The physical ID of the business object or relationship on the FROM side of the relationship
FROMLOGICALID The logical ID of the business object or relationship on the FROM side of the relationship
FROMMAJORID The major ID of the business object or relationship on the FROM side of the relationship
FROMVERSIONID The version ID of the business object on the FROM side of the relationship
FROMORGANIZATION The organization of the business object on the FROM side of the relationship
FROMPROJECT The project (collaborative space) of the business object on the FROM side of the relationship
TOMEANING To side meaning
TOTYPES To business Types allowed (excluding child Types)
TOALLFLAG Boolean flag -True if all business Types allowed
TOREVACTION Revision action of Object at To end.

Value=Float, Replicate, or None.

TOCARD Cardinality of To connection.

Value=One or N

TOPHYSICALID The physical ID of the business object or relationship on the TO side of the relationship
TOLOGICALID The logical ID of the business object or relationship on the TO side of the relationship
TOMAJORID The major ID of the business object or relationship on the TO side of the relationship
TOVERSIONID The version ID of the business object on the TO side of the relationship
TOORGANIZATION The organization of the business object on the TO side of the relationship
TOPROJECT The project (collaborative space) of the business object on the TO side of the relationship
Attribute Macros
Macro Meaning
ATTRNAME Name of attribute

For local attributes, the macro includes the owner. For example, a global attributed Cost is passed as Cost, and a local attribute Cost owned by Part is passed as Part.Cost.

ATTRVALUE Current value
ATTRTYPE Type (Integer, Real, String, Boolean, or Date)
ATTRDEFAULT Default value
ATTRCHOICES List of value choices
Interactive Activity Macros
Macro Meaning
ACTIVITYTYPE Name of activity definition
ASSIGNEE Name of user that process has assigned to the activity
ACTIVITY Name of activity instance
ACTIVITYID System generated activity ID
ACTIVITYOWNER Name of activity owner
Auto Activity Macros
Macro Meaning
AUTOACTIVITYTYPE Name of automated activity definition
AUTOASSIGNEE Name of automated activity assignee
AUTOPROGRAMNAME Name of automated activity program
INPUTARGS Input arguments for the program object
AUTOACTIVITY Name of automated activity instance
AUTOACTIVITYID System generated activity ID
AUTOACTIVITYOWNER Name of activity owner