Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

...

string $Templates.Subject(name: string)

...

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

Arguments

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

Example

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