JSON Identifier List (with Email Parameters)
Describes a list of identifiers for multiple data entities (specifically data record entities), along with additional parameters used specifically in an content creation operation for email.
This structure is variable, allowing specification for email output to either the File Store or directly to a SMTP mail server, with a number of additional parameters.
Structure
The structure initially consists of an object with the following name/value pair:
-
identifiers
– an array of data record entity identifiers (type ofnumber
)
For either email output directly to a SMTP mail server or email output to the file store, the following optional name/value pairs can be specified:
-
attachPdfPage
– parameter to specify if a PDF file of the Print context should also be created and attached to the email output (type ofboolean
) -
attachWebPage
– parameter to specify if HTML files of the enabled sections (a single section by default) in the Web context should also be created and attached to the email output (type ofboolean
)
Specific to email output directly to a SMTP mail server, an additional name/value pair is required:
-
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 ofstring
)
Specific to email output directly to a SMTP mail server, an optional name/value pair can be specified:
-
useAuth
– parameter to specify if authentication is to be used with the mail server (type ofboolean
)
Specific to email output directly to a SMTP mail server with the useAuth parameter specified to a value of true
, the following optional name/value pairs can be specified:
-
user
– the user name to authenticate with (type ofstring
) -
password
– the password to authenticate with (type ofstring
) -
useStartTLS
– parameter to specify if Transport Layer Security (TLS) is to be opportunistically used when sending emails (type ofboolean
)
Specific to email output to the File Store, an optional name/value pair can be specified:
-
eml
– parameter to specify if an EML (E-Mail Message) file of the email for each record should be created in the email output (type ofboolean
)
Specific to either email output directly to a SMTP mail server or email output to the file store with the eml parameter specified to a value of true, an additional name/value pair is required:
-
sender
– the email address to be shown as the sender in the email output (type ofstring
)
Specific to either email output directly to a SMTP mail server or email output to the file store with the sender parameter specified, the following optional name/value pairs can be specified:
-
senderName
– the name to be shown as the sender in the email output (type ofstring
) -
useSender
– parameter to specify if the sender address will be used as the receiver address for all emails in the output (type ofboolean
)
Examples
The following are examples of this structure:
{
"identifiers": [
12345,
23456
],
"attachPdfPage": true,
"attachWebPage": true,
"sender": "john.smith@company.com",
"useSender": true,
"host": "mail.company.com",
"useAuth": true,
"user": "johns",
"password": "password5",
}
{
"identifiers": [
12345,
23456,
34567
],
"attachWebPage": true,
"sender": "jane.smith@company.com",
"senderName": "Jane Smith",
"eml": true
}
{
"identifiers": [
12345,
23456,
34567,
45678
],
"attachPdfPage": false,
"attachWebPage": true
}