#### Adding a Script to be Executed on an Event

To attach such an action as "custom script execution" to an event:

1. Select an event and then select the Run custom script action as this described above in items 1 - 6 of the step-by step procedure.
2. Fill the form that appears on the screen:
   1. Type the short name of an action into the Name field. This name will be shown below the name of the object on the Actions screen.
   2. You can check the Enabled box to enable the action (in this case, a script) execution in case the event takes place.
   3. Type the commands to execute into the Command line field. In the commands you can use the placeholders (different expressions that start from @@ and end by @). For example, if you use Parallels Virtuozzo Containers technology, here you can use some command line tools for Container management and use the @@ve.id@ placeholder to insert the actual Container ID into the command. All the placeholders available are shown in the list below the Command line field. Designation of each placeholder is explained in the right column of the list. Being inserted in the script commands each placeholder automatically drops appropriate value to the actual command generated. Actual values that replace placeholders are being taken from Parallels Business Automation - Standard database, in accordance with particular Account the event is associated with.
   4. Scroll the screen to the bottom of the form and click the Update button to save changes.

Please send us your feedback on this help page