Neolane - JavaScript API - v6.1.0

Unknown
create
Creates a new entity corresponding to a given schema.
create ( [ content ])
Parameters
content
An optional character string corresponding to the XML of the entity to create.
Return value
Returns the entity in the form of a JavaScript object.
Remarks
create is not a global function but a schema method. To invoke it, you must prefix it by the desired schema. For example:
var recipient = nms.recipient.create(
                  <recipient
                    email = "support@neolane.com"
                    lastName = "Neolane"
                    firstName = "Support"/>)
recipient.save()

The document is not automatically saved to the database. You must use the ⌐⌐ save() method on the entity.

Features
Available in:
  • Content management
  • Delivery properties
  • Typology rule
  • JSSP
  • SOAP Method
  • WebApp
  • Workflow

Table of contents

previous page start next page