Returns the result of template by specified xml node if found, otherwise returns empty string.
| $Templates.Format(name: string, node: Xml):string
|
Parameters
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.
|
Basic Usage
| var result = $Templates.Format('Purchase Order', $Xml.SelectSingle('Order'))
|
Sending Email
| $Messages.New(targetEmailAddress,
$Templates.Subject('Purchase Order'),
$Templates.Format('Purchase Order', $Xml.SelectSingle('Order'))
).Send();
|
See Also