Script Editor Key Words

There are a handful of variables that have additional functionality within the Script Editor. These are not reserved, so can be re-assigned, but if so they will lose their original functionality within that script.

These can be found within the Code Snippets, under the Data subheading and the Entities → Operators subheading:

  1. Req:

    width-600

    Useful for handling Request data when the script is being used as an API endpoint. For example: Use req.body to get the body of the request, being sent to the script. Result:

    script editor key words req result1
    script editor key words req result2
  2. Operators: Such as: Any, Between, Like, Not:

    script editor key words operators

    Needs to be declared before being used within a query:

    script editor key words operators declaration

    Or simply use operators.[operation]:

    script editor key words operators declaration simple
  3. wfData:

    script editor key words wfData

    As the Script Editor is using Typeorm, more information can be found here: https://typeorm.io/.