A common example for this type of rule is sending an email to a customer that includes labels and consignment PDF note for a consignment that have just created.
1. To setup the Data Filter, scroll down to the bottom of the page, you will see a Data Filter section as shown below.
2. To set a data filter, first Select Field (Refer screen 01), then Logic (Refer screen 02) and finally Select Value (Refer screen 03) fields with the help of drop-down button.
In this example, we will use Sub-Event in the Select Filed column and then Equal in Logic and Consignment Created in the Select Value field.
3. Once all fields are filled in, click on Add Rule to save the filter. You’ll see the applied filter displayed as text within the Data Filter section (see Screen 04), as shown below.
- If you want to add more filter then again follow the instructions from steps 2 and 3, one more filter will display as shown below.
- But in this example, we will leave this data filter with just the first line of the logic, hence this rule will be applicable for all customers.
To update/Edit the Rule
This section helps you how to update/edit the rule details.
1. Once you have configured the Data Filter, the next step is to edit the rule details at the top of the page. To do this, first select the rule from the list, then update the relevant details displayed on the right-hand side of the page, as shown below.
2. You can update the details as follows:
a. Rule Name: This is the name given to the export rule. It can be changed at any time, but it's best to use a name that clearly describes what the rule does. In this example, we’ll keep the original name set during the initial creation.
b. Trigger Period: This setting controls how often the rule will check for and send out pending exports. If needed, you can update the trigger frequency by clicking the Settings button next to this field. In this example, we'll leave it set to "Every 2 mins".
c. Trigger Event: This defines the event or action that will trigger the export process. In this example, we’re selecting "Consignment SubEvent", which will work together with the Data Filter to control when the export happens.
d. Single Export Only: This setting prevents the system from exporting the same data multiple times. You can turn it on or off as needed using the toggle switch. In this case, we’ll leave it set to “No”, so multiple exports are allowed if needed.
e. Export Framework: This setting determines how the data will be exported from Transvirtual. In this example, we're choosing "Email" as the export method. You can also update the email settings by clicking the Settings button next to this option, as shown below.
Export Framework Settings
a. On Edit the email settings, you can update/add the basic details related to email as below.
i. Send to Consignment Sender Email: Enable the toggle if you wish to send the email to sender mail ID.
ii. Send to Consignment Receiver Email: Enable the toggle if you wish to send the email to a receiver mail ID.
iii. Send to Consignment Creator: Enable the toggle if you wish to send an email to consignment creator.
iv. Send to Customer Contact: If you wish to send an email to customer contact, select the applicable option from the help of drop-down button.
v. Send to Assigned Agent Contact: If you wish to send an email to assigned agent contact, select the applicable option from the help of drop-down button.
vi. Email To: Manually enter the recipient's email address in this field.
vii. Email Subject: Enter the subject line for the email in this field.
In this example we are using email subject as Consignment Labels and PDF note for @Model.ConsignmentNumber.
The @Model.ConsignmentNumber is a coding function that will automatically populate the consignment number into the email subject when the email is sent.