JSON Record Data List (with Email Parameters)
Describes a list of data fields (as name/value pairs), a data table schema and nested data records (if any) for one or more data records, along with additional parameters used specifically in an content creation operation for email.
This structure is used specifically by the Content Creation (Email) service when creating content directly without the prerequisite of the data mapping process.
Structure
The structure consists of an object with the following name/value pairs:
-
data – the data for the data record or data records, consisting of either an object or an array of one or more objects respectively with the following name/value pairs:
-
schema – the data table schema for the data record, consisting of an object with the following name/value pairs:
-
columns – a list of the data columns/fields in the data table schema and their corresponding data types, consisting of an object with one or more name/value pairs:
-
<name> – the name (name) and data type of the data field (value of either BOOLEAN, STRING, HTMLSTRING, INTEGER, FLOAT, DATETIME or CURRENCY) (type of string)
-
tables – a list of any nested data tables in the data record, consisting of an object with one or more name/value pairs:
-
fields – a list of the data fields in the data record and their corresponding data values, consisting of an object with one or more name/value pairs:
-
tables – a list of any nested data tables in the data record, consisting of an object with one or more name/value pairs:
-
host – the network address or name of the SMTP mail server through which emails will be sent. If required, a server port value can also be specified (type of string)
-
user – the user name to authenticate with (if using authentication) (type of string)
-
password – the password to authenticate with (if using authentication) (type of string)
-
sender – the email address to be shown as the sender in the email output (type of string)
-
useAuth – parameter to specify if authentication is to be used with the mail server (type of boolean)
-
useStartTLS – parameter to specify if Transport Layer Security (TLS) is to be used when sending emails (type of boolean)
-
useSender – parameter to specify if the sender address will be used as the receiver address for all emails in the output (type of boolean)
-
attachWebPage – parameter to specify if a single HTML web page (with embedded resources) of the Web context should also be created and attached to the email output (type of boolean)
-
attachPdfPage – parameter to specify if a PDF of the Print context should also be created and attached to the email output (type of boolean)
Example
The following is an example of this structure: {
"data": [
{
"schema": {
"columns": {
"ID": "STRING",
"Gender": "STRING",
"FirstName": "STRING",
"LastName": "STRING",
"Email": "STRING"
}
},
"fields": {
"ID": "CU00048376",
"Gender": "M.",
"FirstName": "Benjamin",
"LastName": "Verret",
"Email": "b.verret@drupa.ol.com.com"
}
},
{
"schema": {
"columns": {
"ID": "STRING",
"Gender": "STRING",
"FirstName": "STRING",
"LastName": "STRING",
"Email": "STRING"
}
},
"fields": {
"ID": "CU01499303",
"Gender": "Miss",
"FirstName": "Dianne",
"LastName": "Straka",
"Email": "d.straka@drupa.ol.com.com"
}
}
],
"host": "mail.company.com",
"user": "johns",
"password": "password5",
"sender": "john.smith@company.com",
"useAuth": true,
"useStartTLS": false,
"useSender": true,
"attachWebPage": true,
"attachPdfPage": true
}
|
|