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

GetPPDocId
Syntax
GetPPDocId();
Description
Returns the document ID of a document stored in a Post-processor repository. You can use this function when storing documents in a Post-processor repository as well as when retrieving documents from a Post-processor repository.
If the function is used when storing documents, the value (document ID) is set each time a new document is created. Note that if a document spans over several Messages, the value is set when the first Message in the document is called, and that this value is kept through all Messages in the document.
If the function is used when retrieving documents, the value (document ID) is set each time a new document is retrieved. In this case, the function can be used at the following post-processing scripting levels:
Returns
num
-1
Example
$doc_id = GetPPDocId();
OpenText StreamServe 5.6.2 Updated: 2018-01-26