Server-side scripts allow the system to run the JS scripts on the server-side when the server events happen, for example:
They are used for creating reactions for the data writing based on the pre-defined rules, such as:
In the server-side scripts, you can use native JavaScript and methods provided by server-side API.
To define the API class in a script, specify it explicitly in the script, for example:
You can import all the API classes by adding the string // #import_all_types at the beginning of the script executed through the eval() function.
|
The following sections contain more details and specifics of server-side scripts usage.
See the Scheduled Scripts article to get more information about implementing routine activities.