Skip to content

Subject

Returns the subject of template if found, otherwise null.

1
$Templates.Subject(name: string, node: Xml):string

Parameters

string name
    Name of template

Xml node
    Input xml node. Optional. If not specified, $Xml is used.

Remarks

Example

1
2
3
// if template subject is set to "Purchase order {{Number}}"
var result = $Templates.Subject('Purchase Order', $Xml.SelectSingle('Order'))
// result contains the "Purchase Order 12345"

See Also