Skip to main content
By default, CRMScript has its own log method, which takes a String message and saves it in log_events. The table has a few more fields that can be utilized, but it requires a helper-method that inserts the data into the table, using the SearchEngine:

Event Type

Event Group

Usage

For the helper-method to be re-useable, add it as its own CRMScript.
  1. Give the script it’s own includeId, for instance lib-log.
  2. Write #include 'lib-log'; at the top of the new script.
  3. Use one of the included methods, for instance log(406, 3, "foo");.
To view the contents of the log, go to System design > Debug log