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 5 Next »

Overview

Returns the subject of template if found, otherwise null.

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

Arguments

string name
Name of template
Xml node
Input xml node. Optional. If not specified, $Xml is used.

Example

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