Defining Email Rule Engine use case rules
Before you begin
Before you define an Email Rule Engine use case rule, you must create the use case record. For more details, see Configuring Email Engine.
Functional panes on the Rule Configuration tab
You define the Email Rule Engine use case rules on the Rule Configuration tab, which has the following panes:
- Rule Qualification, where you define the rule
- Actions, where you specify the type of action (Create or Update) that occurs when the rule qualifications are met
To open the Rule Configuration tab
- From the Application Administration Console, select Custom Configuration > Foundation > Email Engine Rules > Configure Rules, and then click Open to open the Inbound Email Rule Configuration form.
- From the Company field, select the company for which you are creating the use case.
- Click the Rule Configuration tab.
When you open the tab, the Rule Qualification pane appears. - To view the Actions pane, click inside the Actions bar.
- To go back to the Rule Qualification pane, click the Rule Qualification bar.
The following tables describe the fields on each of these panes:
Rule Qualification pane
Field name | Description |
---|---|
Field Name | The field on the incoming email message scanned by the Email Rule Engine to determine whether the rule applies:
|
Operation | The logical operator for the rule qualification with which the Email Rule Engine compares the content of Field Name with the value of Field Value when evaluating incoming email messages:
|
Field Value | The word or phrase for which the Email Rule Engine scans in the selected Field Name. You can use % as a wildcard character in this field. |
plus button | The button to move Field Name, Operation, and Field Value selections into the Qualification field. |
And | A qualification that is joined to a preceding qualification by an AND condition. |
Or | A qualification that is joined to a preceding qualification by an OR condition. |
Not | A qualification that is joined to a preceding qualification by a NOT condition. |
Qualification | The rule qualification. If you are familiar with the syntax, you can directly type the qualification string in this field without using the Field Name, Operation, or Field Value fields. You can also use this field to edit existing qualifications. |
Action | The basic action that the Email Rule Engine takes when the email message matches the rule qualification:
|
Actions pane
Field name | Description |
---|---|
Request Handling | Name of application form on which the specified actions occur. This field is auto-populated from the Base Configuration tab. You cannot edit this field. |
Find Request in fields | Specifies where the Email Rule Engine gets the application request ID number, which enables the Email Rule Engine to handle update messages for existing application requests You can select one or both of the following qualifications:
|
Data Handling | Provides multiple options from which you can select:
|
Notify Sender | Sends a notification to the email sender. You can select none or all that apply:
|
Option and Value | (Optional) Enables you to specify default information to add to the specified fields when creating or updating an application request. Alternatively, you can specify a template for the use case to use. For example, if you are creating an incident use case, if you select Assigned Group from the Option list and type Front Office in the Value field, when the Email Rule Engine runs the rule, it will update the Assigned Group field on the application request record with the value Front Office.
You can use % as a wildcard character in this field. |
Configured Options | Displays the options that you specify in Option and Value. If you are familiar with the syntax, you can directly enter the options to this field without using the Option and Value fields. You can also use this field to edit existing configured options. |
Example: Creating an email change request from a template
This example demonstrates how to create a use case that configures the Email Rule Engine to create a change request from the Upgrade Server Hard Drive template when an inbound email message's subject line starts with the phrase Upgrade Server. The Email Rule Engine evaluates email messages by using this rule before any other rule, and notifies the email sender when the change request is created successfully. Before you define a use case that generates a change request from a template, complete the steps described in Creating-Email-Rule-Engine-use-cases.
To create a use case that generates a change request
- From the Application Administration Console, select Custom Configuration > Foundation > Email Engine Rules > Configure Rules, and then click Open to open the Inbound Email Rule Configuration form.
- From the Company field, select the company for which you are creating the use case.
- Click the Rule Configuration tab.
- In Form Name, select Change.
- In Use Case, select the use case that you created in Creating-Email-Rule-Engine-use-cases.
The Rule Qualification pane appears. - In Field Name, select Subject.
- In Operation, select Starts with.
- In Field Value, type Upgrade Server.
Click the arrow next to Field Value.
The following qualification appears in the Qualification area:('Subject' LIKE "Upgrade Server%")- In Action Name, select Create.
- Click the Actions bar to open the Actions pane.
- Under Notify Sender, click On Success.
- In Option, select Template Name.
- In Value, type Upgrade Server Hard Drive.
Click the arrow next to Value.
The following text appears in the Configured Option area:<templateName>Upgrade Server Hard Drive</templateName>- Click Save.
- Test the rule by sending an email message that satisfies this rule to the inbox.
Where to go from here
When you finish creating the use cases and defining their rules, enable the email application request feature.