Forms & Actions > Maintain recipient's profile with actions > Defining actions > Action: Including a script in an action

Action: Including a script in an action

The OpenEMM allows you to execute your own made scripts. You can write your own script and include it in an OpenEMM action.

You just have to create a New action. After you filled in the first part of the page, choose Script-Action in the Type dropdown and click on Add. Now type in your code and click on Save.

Now you can insert your script in the field. Conclude with Save.

There is also the possibility to add a script to an existing action. Choose an action from the action overview. In the section Add step, choose Script-Action and click on Add. Now type in your code and click on Save.

An example for adding a script action is "Sending the last newsletter just after subscription" in the chapter "Sending the last newsletter just after subscription".

Further information can be found in the "Documentation for OpenEMM ScriptActions" on http://www.openemm.org.