ScriptingScripting on Admin Suite
The Scripting chapter found under the Control room module starts with an overview where all existing scripts are listed. The overview can be filtered by dialect, name, status, and type. Type here refers to the name of the extension point.
From the overview, adding a new script can also be done by clicking the '+' icon.
Adding a script can be done by clicking the '+' icon found on the top right of the scripting overview modal.
- Name: Give the script a name of your choice.
- Dialect: A choice of 3 dialects (Cookbook - Order orchestration - Extension).
- Active: Checkbox to specify if the script is to be active or not.
- Editor: Your input - This is where the magic happens - Checkout the supported statements and the extension point samples we already have in place for you.
Here is a sample of how it would look like.
It is an Extension Dialect which pertains to the extension point
GenerateUserDiscountCoupon. The extension point allows you to influence the area of incentive upon subscription.