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

GetPreviewType
Deprecated. Replaced by GetPreviewTypeEx.
Note:
The GetPreviewType scripting function will still work in upgraded Projects, but for new Projects we recommend that you use GetPreviewTypeEx.
Syntax
GetPreviewType();
Description
Returns a number, indicating whether the current job is a preview job or not. If the job is a preview job, the number indicates from where the preview job was invoked.
Returns
0
1
The job is a preview job, invoked from Ad Hoc Correspondence, Correspondence Reviewer, or Composition Center.
Note:
GetPreviewType does not separate the previews in Ad Hoc Correspondence and Correspondence Reviewer from the previews in Composition Center. To separate these previews, GetPreviewTypeEx must be used.
2
The job is invoked from a connecter, containing an strs-tm-preview metadata (as HTTP header value).
3
OpenText StreamServe 5.6.2 Updated: 2018-01-26