Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Once enabled, select the language in which you wish to write your script:

(info) Velocity is deprecated, consider Javascript as the default, see subpage for examples

  1. Add the custom script that performs the specific action (the example shown here uses a Velocity script):

  2. Image Modified

    Select or create a Test Case to use when testing the script:

  3. Image Modified

    Add a Test Script. This is used to validate the outcome of the test case when the script has ran and must be written in the same language as the custom script:

    Image Modified

  4. Press Validate to test the script. Any issues will be displayed explaining why the script failed to execute, underneath the script where the issues occurred:

    Image Modified
  5. Make the relevant changes and then press Save.

  6. This script will then be used to modify incoming messages which are mapped to the Profile, before running the standard JEMHCloud process.

Adding a Test Case

A Test Case can be added by either creating your own email within the Test Case box or by selecting an existing Test Case from the Load Test Case list.

...

For Velocity examples, see Velocity Scripted Pre-Processing Examples.

For ECMA Script examples, see ECMA Script Scripted Pre-Processing Examples.