Add a New Rule
Procedure
Step 1 | In the Management Portal navigation bar, choose New Digital Channels to launch the default console. |
Step 2 | Choose . |
Step 3 | Click Add New Rule on the top-right corner of the screen. The Configure Rule page appears. |
Step 4 | Enter the Rule Name. |
Step 5 | Choose the condition from the Fire When drop-down list. The rules trigger automatically based on a certain preconfigured condition. The list includes the following conditions that are allowed in a Rule:
|
Step 6 | Choose one of the following methods:
|
Step 7 | Enter the URL in the given field that is called when the event is triggered. |
Step 8 | Choose the type of response format in the Expected Response Format field as JSON. You can choose to pass the payload using either Key Value Pair or Custom Payload. If you select the Key Value Pair radio button, the key value pair settings appear on the screen. |
Step 9 | Check the Form Encode Request Body checkbox to pass the form encoded parameters in the request body. Otherwise, you can configure the parameters and pass them in the API requests. |
Step 10 | To add parameters, follow these steps: |
Step 11 | Choose the Custom Payload radio button to pass the payload in JSON format. The parameters should prefix with @@ and close in curly {} braces in the data field. |
Step 12 | Click Save Rule to save the configured rule. |
Step 13 | You can configure Rules through JavaScript code. To do this, turn on the On/Off JavaScript Rule toggle button on the top-right corner of the Configure Rule page. |
Step 14 | Click Save Rule. |