Adding Custom History

You can add custom history records when modifying business objects as well as administration objects.

This task shows you how to:


Before you begin: Custom History can be added using MQL only.
Related Topics
About History

Adding Custom History to Business Objects

You can add custom history when creating or modifying business objects. This can be helpful for use in triggers to identify what trigger made the changes.

  • Include the add history clause when creating or modifying business objects:

    ...add history VALUE [comment COMMENT]

    VALUE is the history tag or record title.

    COMMENT is can include details of how the modification was made. The comment clause i optional.

    The history entry will include user/time/date/current state, as well as the VALUE and COMMENT strings.

    Note: The complete syntax and clauses for modifying business objects are discussed in the programming reference section of the MQL Guide.

Adding Custom History to Administration objects

You can add custom history when modifying Administration objects such as Types, Relationships, etc. This is helpful for tracking purposes.

  • Include the history clause when modifying administration objects:

    ... history VALUE [comment COMMENT]

    VALUE is the history tag or record title.

    COMMENT is can include details of how the modification was made. The comment clause is optional.

    The history entry will include user/time/date/ as well as the VALUE and COMMENT strings.

    Note: The complete syntax and clauses for modifying each administration object are discussed in the programming reference section of the MQL Guide.