Audit Transaction Example

Audit Transaction Example
lac40
The Audit Transaction (Audit Employee Changes event rule) example creates child rows on designated parent changes, with control over which attributes
CA Live API Creator
 copies into the audit trial. This example requires only this event rule. Auditing is the simplest example of a family of Insert Into From rule extensions.
To illustrate this example, the following code snippet shows the code for the Audit Employee Changes event rule that is included in the
Sample
API:
if (logicContext.verb == "UPDATE") {
  SysLogic.insertChildFrom("employee_audits", logicContext);
  row.notes = "Hello from a JavaScript rule for " + row.name;
  logicContext.update(row);
}
For more information: