2018.1

Table Of Contents
JSON
The Create Email Content task supports two types of JSON:
l A JSON object or an array of JSON objects representing records. If a value in a record
object is a string, it is considered to be a field value. If a value in a record object is a
JSON object, it is considered to be a nested table with detail records. For examples, see
"JSON string samples" on page470.
l A JSON Record Data List (see the REST API Cookbook). When the "Retrieve Items" on
page489 task is set to output Records in JSON, it outputs this kind of JSON data.
If the input is JSON, the task performs a REST call to the
/rest/serverengine/workflow/contentcreation/email/{templateId}} endpoint on the
Connect Server. For more information see the REST API Cookbook.
Processing
This task loops through each record in a Record Set or through each JSON object in an array.
For each record or JSON object, an HTMLEmail is generated using that record's or object's
data. The output generated is then sent via an SMTPserver with the email address set by the
template.
Output
Within the Workflow process, the output to this task is only modified metadata indicating that the
task is complete. It is the Server component that outputs the emails themselves and sends them
to each recipient.
Properties
General Tab
l Template
l "%o":Select to use a dynamic template name. Click on %o to change the
expression that determines the name of the template to use.
l Template Names:Select the appropriate template. Adding template is done
through the Send to Workflow option in the Designer Module.
Page 459