paintRequest:
contextId string : C-KFDsCMMHXpDUi0ltN0p3FvF
className string : bus_facade_campaign_one2one
processName string : methodName i.e. changeMessage
entityData array : i.e. array('beanId' => ID of the bean (created/updated/loaded) in the bean store)
processData array : i.e. array('message_messageName' => Unique name of the message, a parameter for the process)
Name | Parameters | Description |
---|---|---|
changeMessage | Entity Data : beanId Process Data :message_contentType, message_messageName ormessage_messageId |
This method checks the process data for the existence of messsage_messageName or message_messageId which can refer to an existing message in the system and message_contentType (EMAIL or SMS) which will define the type of bean to be created during the method. The contentType is mandatory. If no name or id is specified for the message, a new message will be created (but not permanently stored) and the writeable variables used in the update or store method will need to be used to configure the message. The one 2 one will not be triggered untill the store process is called |
paintRequest:
contextId string : C-KFDsCMMHXpDUi0ltN0p3FvF
className string : bus_facade_campaign_one2one
processName string : create
entityData array : null
processData array :
'message_messageName' => Unique message name within the platform (if using an existing messasge)
'message_contentType' => Type of the message being sent EMAIL or SMS
paintResponse:
Result array :
'result' => "success"
'resultData' => array :
'bus_entity_campaign_one2one' => array
... => ...
... variables ...
... => ...
'beanId' => ID for new empty email bean in bean store
paintRequest:
contextId string : C-KFDsCMMHXpDUi0ltN0p3FvF
className string : bus_facade_campaign_one2one
processName string : update
entityData array :
'beanId' => ID of the empty bean returned during the create
... => ...
... Required & optional variables ...
... => ...
processData array : null
paintResponse:
Result array :
'result' => "success"
'resultData' => array
'bus_entity_campaign_one2one' => array
'contentBeanId' => "6da038682d68175495cac627c04e0791"
... variables ...
'beanName' => "bus_entity_campaign_email"
paintRequest:
contextId string : C-KFDsCMMHXpDUi0ltN0p3FvF
className string : bus_facade_campaign_one2one
processName string : store
entityData array : 'beanId' => ID of the bean in the bean store
processData array : null
paintResponse:
Result array :
'result' => "success"
'resultData' => array
'bus_entity_campaign_one2one' => array
'deliveryId' => 0123456
... variables ...
'deliveryReportId' => 0123456
Name | Example | Description | |
---|---|---|---|
message_messageName_base64 |
|
The recommended method to send string data, base 64 encoded. This variable is the name of an existing message in the system to use for this one2one delivery, used by the process and not stored on the one2one entity. Not required if "message_messageId" given |
|
message_messageName |
|
If you are unable to base 64 encode strings then use this variable as the name of an existing message in the system to use for this one2one delivery, used by the process and not stored on the one2one entity. Not required if "message_messageId" given |
|
message_messageId |
|
The ID of an existing message in the system to use for this one2one delivery, used by the process and not stored on the one2one entity. Not required if "message_messageName" given |
|
message_contentType |
|
Type of delivery being sent. The One to One bean needs to know this to determine what form of validation to perform on the recipient's details (email or mobile validation) and which person record to retrieve. |
Name | Example | Description | |
---|---|---|---|
message_bodyHtml_base64 |
|
The recommended method to send string data, base 64 encoded. This variable is the HTML content of the message to use for this one2one delivery, used by the process and not stored on the one2one entity | |
message_bodyHtml |
|
If you are unable to base 64 encode strings, then use this variable as the HTML content of the message to use for this one2one delivery, used by the process and not stored on the one2one entity | |
message_bodyPlain_base64 |
|
The recommended method to send string data, base 64 encoded. This variable is the PLAIN TEXT content of the message to use for this one2one delivery, used by the process and not stored on the one2one entity | |
message_bodyPlain |
|
If you are unable to base 64 encode strings, then use this variable as the PLAIN TEXT content of the message to use for this one2one delivery, used by the process and not stored on the one2one entity | |
message_bodySms_base64 |
|
The recommended method to send string data, base 64 encoded. This variable is the SMS content of the message to use for this one2one delivery, used by the process and not stored on the one2one entity | |
message_bodySMS |
|
If you are unable to base 64 encode strings, then use this variable as the SMS content of the message to use for this one2one delivery, used by the process and not stored on the one2one entity | |
message_subject_base64 |
|
The recommended method to send string data, base 64 encoded. This variable is the subject line to appear in the message sent. Note that the subject line will be converted into the character set of the message on sending. | |
message_subject |
|
If you are unable to base 64 encode strings, then use this variable as the subject line to appear in the message sent. Note that the subject line will be converted into the character set of the message on sending. | |
message_languageCode |
|
Language code for this message. If omitted: Profile default language code used for this message. |
|
message_templateName |
|
The name of the template into which the body content will be placed. The custom templates must have been already added to the platform for usage. To get a new template added contact either the customer success manager for the account, or the pure360 support team for more information If omitted : Default is used Please see EMAIL FACADE or SMS FACADE for more details |
|
message_trackHtmlInd |
|
Indicates whethr to enable tracking of links within the html body, this will feedback these events into the platform one to one reports. If omitted : Will default to "Y" |
|
message_trackPlainInd |
|
Indicates whethr to enable tracking of links within the plain text body, this will feedback these events into the platform one 2 one reports. If omitted : Will default to "N" |
Name | Example | Description | |
---|---|---|---|
toAddress_base64 |
|
The recommended method to send string data, base 64 encoded. This variable is the recipient email address or mobile number depending upon the contentType | |
toAddress |
|
If you are unable to base 64 encode strings, use this variable as the recipient email address or mobile number depending upon the contentType | |
deliveryDtTm_base64 |
|
The recommended method to send string data, base 64 encoded. This variable is the datetime that this delivery will be sent out | |
deliveryDtTm |
|
If you are unable to base 64 encode strings, use this variable as the datetime that this delivery will be sent out |
Name | Example | Description | |
---|---|---|---|
multipartInd (SMS Only) |
|
Indicates whether the SMS being sent is a single message or spread over multiple messages (exceeding 160 characters). If omitted : Defaults to "N" |
|
validateEmailExistsInd |
|
Indicates whether to validate the email address should be validated before sending. If omitted : Will default to "N" |
|
allowResetBounceInd |
|
Indicates whether to reset the recipient, if it is a hard bounced recipient. If omitted : Will default to "N" |
|
allowResetOptoutInd |
|
Indicates whether to opt this recipient back in to the profile, ensure proof is kept of request to opt back in (if non transactional). If omitted : Will default to "N" |
|
customData |
|
An array of custom data to merge into the designated custom fields within the message. If omitted : Will default to default personalisation or {~customFieldName~} |
|
customFromDesc |
|
The text to display in the from description of the email. If omitted : Will use the profile specific from descriptor |
|
attachmentName |
|
Name of the attachment to add to the one to one send (a reference name - not the path) | |
attachment |
|
The file itself encoded as a base64 string |
Name | Example | Description | |
---|---|---|---|
contentBeanId |
|
Bean id of the message (email or sms) passed as the processData during the CREATE of the bean, message is loaded in to the bean store | |
defaultAutoResponderEnabledInd |
|
Indicator as to whether the delivery is using the default auto-responder | |
createdDtTm |
|
Date/time (in string format) that the delivery entity was created | |
createdBy |
|
User name of the login that created the one2one delivery. | |
deliveryId |
|
Unique identifier for this delivery. | |
deliveryReportId |
|
The id of the delivery report record that links to the tracking data. | |
automationId |
|
The ID of the automation that generated the one2one delivery entity |