Examples of Hooks and Scripts

Hook examples provide a general idea of how you might add hooks to your schema. HCL Compass examples do not include error checking and assume that each call is to a valid object. You should check the return value of the Validate API to ensure there is no error before you commit the record to the database.

Because hooks run with administrator privileges, these examples work even if the behavior of the fields is read-only.

This section provides the following hook examples:

In addition to the examples of hooks and external applications provided in this chapter, see the following resources:

  • HCL Compass Designer Help > Working with hooks