Creating Workflow Actions: Send Email
A Send Email action on a workflow rule automatically sends email when the conditions on the workflow rule are met.
NOTE: You can create multiple actions for a workflow rule, up to a maximum of 25 actions for each rule.
The following procedure describes how to create a Send Email action.
Before you begin. To perform the following procedure, you must have the Manage Workflow Rules privilege in your user role. For information on adding privileges to roles, see Adding Roles.
To create a Send Email action
- Navigate to the rule where you want to create the action:
- In the upper-right corner of any page, click the Admin global link.
- In the Business Process Management section, click Workflow Configuration.
- On the Workflow Rules List page, find the rule where you want to create the action.
For information about searching for workflow rules in the list page, see Filtering Lists.
- Click the Workflow Name link on the rule.
- In the Actions title bar on the Workflow Rule Detail page, click Menu, and select Send Email.
NOTE: The trigger event on the workflow rule determines what types of actions can be created on the rule.
TIP: You can create a copy of an existing workflow rule action by clicking the Copy link for the action.
- In the Workflow Action Edit page, enter a name for the action.
- If you want to enable the action, select the Active check box.
- In the From field, select or enter the email address for the sender of the email, as follows:
- In the To field, select or enter the email address of the email recipient, as follows:
- Enter the subject line for the email.
You can embed functions and field names in the text. Three percent signs (%%%) before and after an embedded function or field name indicate that it is to be converted to a text value.
For example, the text might include the following:
A new %%%[<AccountType>]%%% account has been created
If you type a function or field name directly in the field, you must type three percent signs before and after it. If you use Expression Builder to embed a function or field name, the percent signs are automatically added. If you use Expression Builder to embed a complex expression, the percent signs might not be added at the appropriate places. In that case, ensure that the percent signs are placed before and after the entire expression so that the expression is evaluated correctly.
For example, %%%Today() + 30%%% adds 30 days to the current date, but %%%Today() %%%+ 30 concatenates 30 to the string representation of the current date.
To use Expression Builder to embed functions and field names in the field, click the fx icon beside the field. If you are entering only static text, you do not need to use Expression Builder.
This field can contain a maximum of 1024 characters, including the percent signs before and after the functions and field names.
- Enter the message for the email.
You can embed functions and field names in the text, as described in Step 3.
For example, the text might include the following:
Hello Mr %%%[<ContactLastName>]%%%,
This field can contain a maximum of 2000 characters, including the percent signs before and after the expressions.
- Save the action.
For step-by-step procedures for creating other types of workflow actions, see the following topics:
Related Topics
See the following topics for related information about workflows:
|