Script functions reference > Preview functions

Preview functions
Preview functions are used to check if a job is a preview job or not. If the job is a preview job, a script function can be used to select an appropriate connector for the preview Process.
The table below contains a short description of each script function. For information about syntax, etc., see the full description of each script function.
Returns a number, indicating whether a job is a preview job or not. If the job is a preview job, the number indicates from where the preview job was invoked.
Only available for preview calls from Ad Hoc Correspondence, Correspondence Reviewer, or Composition Center.
Returns a string containing an optionally requested content type for a response to a preview request. The returned value can be used to select an appropriate connector for the preview Process.
The function can be used if the GetRequestedPreviewContentType function returns a content type for which more than one preview type is available. For example, if the returned content type is text/html, and both previews of email bodies and HTML web pages are possible in the web service client.
For an example, see Preview examples.
OpenText StreamServe 5.6 Updated: 2013-03-01