2021.1

Table Of Contents
Variable Name Description
Example Usage (VBScript)
containing any variable available to Watch,
including data selections.
Example usage:
var watchDate = Watch.ExpandString
("%y-%m-%d");
"Watch.GetConnectToken" on
page163
Uses the default Connect Server host as defined in
the Workflow preferences to log into the Connect
Server and retrieve an authorization token.
Example usage:
var tokenConnect =
Watch.GetConnectToken();
"Watch.GetConnectTokenEx" on
page164
Uses the arguments passed to it to log into the
Connect Server and retrieve an authorization token.
Example usage:
var tokenConnect =
Watch.GetConnectTokenEx("localhost",
1234, "myUser", "secret");
"Watch.GetJobFileName" on
page165
Retrieves a string containing the job path and file
name located in the job spool folder.
Example usage:
var s = Watch.GetJobFilename();
"Watch.GetJobInfo" on page166 Retrieves the content of a numbered job info (%1 to
%9).
Example usage:
var s = Watch.GetJobInfo(9);
"Watch.GetMetadataFilename" on
page167
Retrieves a string containing the job's metadata
path and filename. This is useful when using the
Metadata API in your script. (See Metadata API.)
Page 158