Script functions reference > Script functions in alphabetical order > G > GetMetaDataDocument

GetMetaDataDocument
Syntax
GetMetaDataDocument(metadata);
metadata
Description
This script function is used for retrieving the value of the specified metadata item of the current incoming document. The metadata item must be defined in the Document Type set on the current Message. This function is typically used in the Process to get the value of a metadata item. By using this script function instead of referring directly to a variable, it is possible to create scripts that are less dependent on a specific job and Message. Instead they can be reused in any Process that uses the same metadata group. By using a global metadata group it is possible to make very generic scripts.
Returns
Returns the value of the specified metadata item. If the metadata item has not been defined, an empty string is returned.
Example
$invoiceNumber = GetMetaDataDocument("invoice number"); 
OpenText StreamServe 5.6 Updated: 2013-03-01