Skip to content

$Templates.Subject

Overview

string $Templates.Subject ( name, [ XmlNode ] )

Returns the template content if found, otherwise null.

Arguments

String name Name of template

XmlNode node Xml node to use as input. Can be null.

Remarks

Input node is optional. If specified subject formatted by data templates rules.

Examples

// 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