OpenWGA 7.11 - TMLScript reference

Method :

addItem(name, value)

On object RESTEntry
Usage Adds an item to the entry
Description The usage of this method is not restricted to the actual items of the document. You could add any custom item field that you want.

name (String):

Name of the field

value (String, Number, Date, Boolean or a List containing these values):

The value of the field