The following information is provided as a guide to the internal implementation of scripts, for use mainly in adding support for additional languages.

Scripts receive several input parameters:

current record values. Permissions won't be applied either on reading or on saving. Scripts can also block user action or force user log-out. If a user record contains linked fields, then corresponding records from the linked tables are also provided. For example, if we have a record from Cases table, that contains assigned_to field= "John" which references Contacts table, then John's record from Contacts table will be also included. Only single linked records are exported, i.e. communications tables and any other multiple value LF records will not be exported. This constraint is applied for scripts on perl, .exe scripts and all other languages that interact with via .xml files.

[optional] old record values, available when script run in response to "record modified" event. This information allows a script to understand what fields were actually changed by the user, or by preceding rules-triggered actions.
Script should output:

More detailed description of input and output formats is provided in the next chapters.

Related articles