FlexiRule Docs
Send Email on Sales Order Submission
Step-by-step visual tutorial on configuring automated email notifications using the Smart Value Selector.
Tutorial: Send Email on Sales Order Submission#
In this tutorial, you will visually configure a rule that sends an automated order confirmation email with a PDF attachment whenever a Sales Order is submitted.
Scenario Overview#
Business Goal: Send instant order confirmation emails to customers upon Sales Order submission.
- Target DocType:
Sales Order - Trigger Event:
DocType Event->On Submit - Visual Nodes:
Start->Notify
Step-by-Step UI Instructions#
Step 1: Create a New Rule#
- Navigate to FlexiRule -> Rule List -> New.
- Set Rule Name to
Send Order Confirmation Email. - Set Document Type to
Sales Order. - Set Trigger Event to
On Submit. - Click Save and open the Rule Builder.
Step 2: Add and Configure the Notify Node#
Hover over the Start node’s connection port and click + Add Action.
Select Notify from the action picker.
In the Notify configuration panel on the right:
- Set Channel to
Email.
- Set Channel to
Configure Recipients:
- Click the Recipients field.
- Type
@to open the Smart Value Selector. - Search for
Contact Emailand select Sales Order → Contact Email.
Configure Subject:
- Click the Subject field.
- Type
Thank you for your order! Order #. - Type
@to open the Smart Value Selector, search forName, and select Sales Order → Name.
Configure Message Body:
- Click inside the Message editor.
- Type
Dear. - Type
@, search forCustomer Name, and select Sales Order → Customer Name. - Type
, thank you for your order #. - Type
@and select Sales Order → Name. - Type
for a total amount of. - Type
@and select Sales Order → Grand Total. - Type
. Our team is now processing your order..
Attach PDF Printout:
- Check the Attach PDF box.
- Select your preferred Print Format from the dropdown menu.
Step 3: Test and Activate#
- Click Test Run in the top action bar.
- Select a submitted Sales Order record and click Run Test.
- Verify that the visual execution path highlights in green and displays the rendered email preview.
- Close the builder, enable the rule, and click Save.
Was this page helpful?