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

GetFirstPPDoc
Syntax
GetFirstPPDoc();
Description
Returns a counter index that identifies the first document, in a set of documents sent to the output connector in a Post-processor job.
Returns
num
-1
Example
$doc_index = GetFirstPPDoc();
$total = 0;
while(num($doc_index) > 0)
{
  $invoice = GetPPMetadata($doc_index, "invoice_no");
  $doc_index = GetNextPPDoc($doc_index);
}
OpenText StreamServe 5.6 Updated: 2013-03-01