2022.2

Table Of Contents
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 Email Content" on page502 task, a "Create Preview PDF" on page511
task, or a "Create Web Content" on the previous page task.
Input
This task must receive either a valid Record ID or a JSON object.
Record ID
A valid Record ID can be retrieved from various data sources. By default, when the Record ID input
option is selected, the metadata is used as input. The "Execute Data Mapping" on page524 task and
the "Retrieve Items" on page538 task output metadata containing information regarding records.
JSON
The Create Web 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 con-
sidered to be a nested table with detail records. For examples, see "JSON string examples" on
page78.
l
A JSON Record Data List (see the REST API Cookbook and "JSON Record Data List example"
on page79). When the "Execute Data Mapping" on page524 or "Retrieve Items" on page538
task is set to output Records in JSON, it outputs this kind of JSON data.
If the input is JSON data, the task makes a call to the REST workflow/contentcreation/html/
{templateId} endpoint on the Connect Server. For more information see the REST API Cookbook.
Note that only the first JSON object is processed, as the endpoint generates HTML output for a single
record.
Processing
For a single record, this task generates the output for the Web Context of the specified template. Any
external resources such as images, CSS style sheets or JavaScript files, are also produced and put
aside on the OL Connect Server component.
Note: Content creation may be aborted by a script in a Connect template that raises a fatal error.
This triggers the On Error tab of the Content Creation task. See Designer Script API.
Page 519