2021.1

Table Of Contents
Create Email Content
The Create Email Content task generates a set of email content items from a template's Email
Context, which are then sent directly to the recipient set in each record.
Tip
Drag-and-drop a template from the Connect resources in the Configuration Components
pane on a process to add this task or one of the other OL Connect tasks that create
content from a template: a "Create Preview PDF" on page610 task, a "Create Print
Content" on page615 task, or a "Create Web Content" on page619 task.
Input
This task must receive either Metadata containing information regarding a valid Record Set, or
JSON data.
Metadata
The "Execute Data Mapping" on page626 task and the "Retrieve Items" on page644 task
output metadata containing information regarding a Record Set.
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 examples" on page91.
l A JSON Record Data List (see the REST API Cookbook and "JSON Record Data List
example" on page93). When the "Execute Data Mapping" on page626 or "Retrieve
Items" on page644 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.
Page 599