Neolane - JavaScript API - v6.1.0

Unknown
SubmitNotification
Create and submit a notification from a scenario.
Number notificationId = SubmitNotification (
    String       scenarioName,
    XML          target
)
Parameters
scenarioName
Internal name of the template
target
Delivery target population replacing the one in the scenario
Return values
notificationId
Notification identifier
Remarks
The "target" parameter specifies the delivery target. It will override a target specified in the template. To deliver to a target in the database the target element will use the following syntax: <bpt id="1">&lt;programlisting&gt;</bpt> &lt;delivery&gt; &lt;targets&gt; &lt;deliveryTarget&gt; &lt;targetPart type='query' exclusion='false' ignoreDeleteStatus='false'&gt; &lt;where&gt; &lt;condition expr='[@partition-id] = 1050'/&gt; &lt;/where&gt; &lt;/targetPart&gt; &lt;/deliveryTarget&gt; &lt;/targets&gt; &lt;/delivery&gt; <ept id="1">&lt;/programlisting&gt;</ept> <bpt id="2">&lt;para&gt;</bpt>To deliver to a target in a file:<ept id="2">&lt;/para&gt;</ept> <bpt id="3">&lt;programlisting&gt;</bpt> &lt;delivery&gt; &lt;targets&gt; &lt;deliveryFile upload='false'&gt; &lt;name&gt;c:/tmp/myFile.csv&lt;/name&gt; &lt;/deliveryFile&gt; &lt;/targets&gt; &lt;/delivery&gt; <ept id="3">&lt;/programlisting&gt;</ept> <bpt id="4">&lt;para&gt;</bpt> It is possible to explicity define the target (in reality the content of the file used as the target):<ept id="4">&lt;/para&gt;</ept> <bpt id="5">&lt;programlisting&gt;</bpt> &lt;delivery&gt; &lt;targets fromExternalSource='true'&gt; &lt;externalSource&gt;MsgId|ClientId|Title|Name|FirstName|Mobile|Email|Market_segment|Product_propensity1|Product_propensity2|Product_propensity3|Product_propensity4|Support_Number|Amount|Threshold1| 000001234|M.|Martin|Peter|0650201020|pmartin@neolane.com|1|A1|A2|A3|A4|E12|120000|100000 &lt;/externalSource&gt; &lt;/targets&gt; &lt;/delivery&gt; <ept id="5">&lt;/programlisting&gt;</ept> It is also possible to keep the target defined in the template with the attribute "_keepTemplateTarget" <bpt id="6">&lt;programlisting&gt;</bpt> &lt;delivery&gt; &lt;targets _keepTemplateTarget='true'/&gt; &lt;/delivery&gt; <ept id="6">&lt;/programlisting&gt;</ept>
Features
Schema: nms:delivery
Static: Yes

jsapi-en

previous page start next page