8.8

Table Of Contents
Check the option Use as step description to display the text next to the icon of the plugin in
the Process area.
Create Web Content
The Create Web Content task generates the output of the HTMLContext of a specified
template for a single record and returns the HTMLcode to PlanetPress Workflow for further
processing and return to the requester. Generally, this task is placed within an HTTP Server
Workflow.
This task can be added as an Action task (see "Action Tasks" on page268) or as an Output
task. Adding it as an Action task enables the process or branch to continue after this task. An
Output task is always located at the end of a process or branch.
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
page591 task and the "Retrieve Items" on page609 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 considered to be a nested table with detail records. For examples, see
"JSON string samples" on page579.
l A JSON Record Data List (see the REST API Cookbook). When the "Retrieve Items" on
page609 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.
Page 587