SubmitNotification
Create and submit a notification from a scenario.
Number notificationId = SubmitNotification (
String scenarioName,
XML target
)
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"><programlisting></bpt>
<delivery>
<targets>
<deliveryTarget>
<targetPart type='query' exclusion='false' ignoreDeleteStatus='false'>
<where>
<condition expr='[@partition-id] = 1050'/>
</where>
</targetPart>
</deliveryTarget>
</targets>
</delivery>
<ept id="1"></programlisting></ept>
<bpt id="2"><para></bpt>To deliver to a target in a file:<ept id="2"></para></ept> <bpt id="3"><programlisting></bpt>
<delivery>
<targets>
<deliveryFile upload='false'>
<name>c:/tmp/myFile.csv</name>
</deliveryFile>
</targets>
</delivery>
<ept id="3"></programlisting></ept>
<bpt id="4"><para></bpt> It is possible to explicity define the target (in reality the content of the file used as the target):<ept id="4"></para></ept> <bpt id="5"><programlisting></bpt>
<delivery>
<targets fromExternalSource='true'>
<externalSource>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
</externalSource>
</targets>
</delivery>
<ept id="5"></programlisting></ept>
It is also possible to keep the target defined in the template with the attribute "_keepTemplateTarget"
<bpt id="6"><programlisting></bpt>
<delivery>
<targets _keepTemplateTarget='true'/>
</delivery>
<ept id="6"></programlisting></ept>
Features

