Defining Email Rule Engine use cases
If an email message does not match any of the defined use cases, the system uses broadly defined, generic, and default use cases to process the email. You cannot modify the default use cases or add to the default set. The following default use cases are provided:
- Create a Work Order
- Create an incident request
- Create a change request
- Add a work information note to a task
- Add a work information note to a Work Order
- Add a work information note to a Known Error
- Add a work information note to a problem investigation
- Add a work information note to an incident request
If the Email Rule Engine cannot match an email message to any of the use cases, it rejects the email message.
To define the use cases, you must create Email Rule Engine use cases and define Email Rule Engine use case rules.
To create Email Rule Engine use cases
To perform any Email Rule Engine configuration procedure, you must have Email Rule Config permissions. Also, ensure that the Email Engine is installed on your system and your inbox to receive the incoming email is configured. For information about configuring mailboxes, see Configuring Email Engine.
Also, for the user creating the email service request, one of the following conditions must be satisfied:
- People record of a user is configured with email address and a Login ID.
- The email address is configured as a Trusted address and a recipient is associated with it.
To create an Email Rule Engine use case
- 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 Base Configuration tab.
- From the Category list, select Use Case.
- Click Add.
- Complete the following fields for the use case that you are creating:
- Status—Select Active (default) or Inactive.
- Name—Enter a name for the use case.
- Applies to Form (optional) — Specify the application to which the use case applies: Incident, Known Error, Problem, Task, Change, and so on. The system uses this entry to group the use cases in the table field on the left side of the Base Configuration tab.
Sort Order (optional) — Specify the digit that corresponds to the order in which you want the Email Rule Engine to evaluate this use case relative to other use cases. Use case 1 is evaluated before use case 2, and so on.
- Click Submit.
The use case appears in the table on the left side of the Inbound Email Rule Configuration form.
Defining Email Rule Engine use case rules
The general procedure for defining rules is the same for all use cases. However, the way that you use the fields on the Rule Configuration tab depends on the purpose of the use case.
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:
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:
|
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.