2019.1

Table Of Contents
Note
When the data mapping configuration provides multiple records, the preview
is created based on the first record.
Note
The Create Preview PDF plugin cannot parse Workflow automation variables.
Instead it uses the default values set up in the Preprocessor of the data mapping
configuration.
To work around this issue you could either convert the posted data file into JSON,
add the variables and use the JSON string option in the Create Preview PDF
plugin, or you could add the variables to the data file and let the data mapping
configuration extract them.
Another alternative would be to use the "All In One" on page524 task.
l
JSON string sets the data source to a JSON string (see "Using JSON" on the next page).
A text area is shown allowing the user to enter the JSON string.
The JSON string may contain local and global variables, Job Infos and data selections
(see "JSON string samples" on the next page).
A single variable can be used, assuming that the respective variable contains a JSON
string.
In case the JSON string is not a valid JSON object, the plugin will error out with an explicit
message.
Note
This option requires that keys in the JSON string have matching field names in the
data model of the template. When they have, the JSON values are passed to the
template and the personalization scripts of the template will have access to the
values through the record's data fields. (See the Designer help: Adding Variable
Data).
Page 543