Overview
Returns the result of template by specified xml node if found, otherwise returns empty string.string $Templates.Format(name: string, node: Xml)
Arguments
string name
Name of template
Xml node
Xml node to use as input. Optional. If not specified, $Xml is used.
Example
Content of template can be in XSLT or data templates format.
Example
Basic Usage
var result = $Templates.Format('Purchase Order', $Xml.SelectSingle('Order'))
Example
Sending Email
$Messages.New(targetEmailAddress, $Templates.Subject('Purchase Order'), $Templates.Format('Purchase Order', $Xml.SelectSingle('Order')) ).Send();