Neolane - JavaScript API - v6.1.0

Unknown
SubmitDelivery
Creation and submission of a delivery from a scenario (from its internal name).
Number deliveryId = SubmitDelivery (
    String       scenarioName,
    XML          content
)
Parameters
scenarioName
Internal name of the delivery template
content
XML content to add to the template
Return values
deliveryId
Identifier of the new delivery (returned even if the analysis fails)
Examples
The following example submits a delivery using the template "mail" and replacing the text content by "Hello world...".
var deliveryId = SubmitDelivery("mail",
                                <delivery>
                                  <content>
                                    <text>
                                      <source>Hello world...</source>
                                    </text>
                                  </content>
                                </delivery>)
Features
Schema: nms:delivery
Static: Yes

jsapi-en

previous page start next page