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

GetSegMetadata
Syntax
GetSegMetadata(docHandle, metadataName);
docHandle
metadataName
Description
Returns the value of the metadata specified in the metadataName parameter, for the document in the current segment specified in the docHandle parameter.
Returns
A string specifying the value of the specified metadata. If the metadata is not found, an empty string is returned.
Example
$doc_handle = GetSegFirstDoc();
$subject = GetSegMetadata($doc_handle, "invoice_no");
Result:
$subject = "1234"
OpenText StreamServe 5.6.2 Updated: 2018-01-26