#NEWOBJECT
Create and return a new object of the specified Content Type, in memory (will not be stored in the repository). The value for each field may be set using cScript (see example below).
Prototype
#NEWOBJECT($content_type)
Parameters
- content_type - A string with the Content Type Identifier or a content type object.
Return
Returns the new object.
Example
#**
* Create a Contact in memory, assign a first and last name to it,
* and then output the Contact's summary.
*#
#ASSIGN($Contact,#NEWOBJECT('Contact'))
#{$Contact.FirstName = 'John';}
#{$Contact.LastName = 'Smith';}
Contact: $Contact