Developer Workflow Guide > Notification Task > Email Content
  

Email Content

Email content includes the email subject and body. Enter email content in the Notification tab. You can use workflow parameters and variables to dynamically define email content.

Dynamic Email Content

Use workflow parameters and variables in the email subject and body to dynamically define the content.
You can select a workflow parameter or variable name when you select Email Content in the email properties.
You can type a workflow parameter or variable name in the subject or body fields when you select Email notification type in the Notification tab. When you type the parameter or variable name in the subject or body, use the required syntax.
For example, you create a workflow variable named MappingErrorRows and assign the number of error rows output value for a Mapping task to the variable. You enter the following text in the body of a Notification task:
Mapping failed to write ${var:MappingErrorRows} rows to the target.
The following table describes the types of parameters and variables that you can use to define dynamic content:
Parameter or Variable Type
Description
Workflow parameters
Use a workflow parameter of any type to define email content in a parameter file when you run the workflow.
System workflow variables
Use any of the system workflow variables to include the values of the system workflow variables in email content.
User-defined workflow variables
Use a workflow variable of any datatype to include output values produced by other tasks in email content. Or, use a workflow variable of any datatype to include values assigned to the variable with an Assignment task in email content.

Entering Email Content

When you configure email content, you enter the email subject and body text. You can use workflow parameters and variables to configure dynamic email content.
    1. Select the Notification task in the editor.
    2. In the Properties view, click the Notification tab.
    3. Select Email under Notification Types.
    4. Click Subject.
    The Email Properties dialog box appears.
    5. In the Email Content view, enter text in the subject and body fields.
    6. To configure dynamic content using an existing workflow parameter or variable, select the subject or body field, and then double-click an existing workflow parameter or variable.
    The Developer tool adds the parameter or variable to the field using the required syntax.
    7. To configure dynamic content using a new workflow parameter or variable, click New Parameter or New Variable.
    In the Add Parameter or Add Variable dialog box, enter the name and type of the parameter or variable. Enter a default value for a parameter, or an initial value for a variable. The Developer tool creates the workflow parameter or variable and adds it to the email content field.
    8. Click OK.