2021.1

Table Of Contents
"JSON string examples" on page92.
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643 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.
Output
The task outputs HTML code as a job file. Within this HTML code, references to external
resources point to the local OL Connect Server and are served to the requester directly when
the HTML file is opened in a browser.
Properties
General Tab
l
Template File:
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.
Page 620