The procedure to assign a conditional action to a CRM script definition is as follows:
- Navigate to Quick Menu > CRM > Configuration > Script Definition. The CRM Script Definition Configuration window is displayed.
- Expand a script type heading from the alphabetical list and select an associated CRM script definition, or type its name into the Search Script Definition field. By default the list is filtered to show Current definitions. An alternative filter can be applied using the Select view drop-down field: Expired, Future or All
1.
- Click on Path. The Path tab is activated.
- Select an existing node as the branch for the new conditional action.
- Click on New Yes Condition or New No Condition, as required
2. The Condition Rule window is displayed.
- Enter a Label for the new condition into the field provided.
- Click on Statement Builder. The Statement Builder For Script Definition window is displayed.
- Enter a Validation tag into the field provided by expanding the entity heading and selecting the desired field. Alternatively, typing the name into the Search Tags field will find all possible matches
3.
- Using the Expression drop-down field, select an appropriate value ( = <> < <= > >= In) for the condition.
- Enter the matching Condition into the field provided. Text and values should be entered directly i.e. without quotation marks; where the validation tag is linked to a discrete set of values, a drop-down field is employed to control the desired selection.
- Click on And/Or to add a further condition to the same statement function. Use the drop-down field to change the expression operator. By default, And is displayed.
- Repeat step 11 to add further conditions, as required, adjusting the Order number to control the sequence of execution. The Up and Down arrows are available to increment or decrement the value, as required.
- Click on End Condition and Save
4. The statement algorithm is displayed in the Rule field.
- Use the Description field to add contextual notes that will explain the derivation and purpose of the conditional rule.
- Click on Save. The new condition appears in the graphical view, linked to the predecessor node and prefixed with the action type i.e. Y or N.
Note
1 The Search Script Definition field will match against any element of the description.
2 System validation rules control the logical options that are available for selection, based on any other conditional action branches already linked to the specific node.
3 The Tag values available for selection are filtered according to the relevant module.
4 To remove an existing condition statement, select the corresponding row in the condition summary table and click on Remove And/Or Condition.
See related topics...
CRM script maintenance overview
To add a node condition to a CRM script definition
To add a node element to a CRM script definition
To assign an elemental action to a CRM script definition