Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

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();
  • No labels