2021.2

Table Of Contents
Syntax
Watch.ExpandString(StringToExpand)
StringToExpand
A regular parseable string that may contain system variables (%u, %f), user variables (%1 to
%9), octal codes, and data selections.
Example
This example results in expanding the string of the variables to the date value in the following
format: “YYYY-MM-DD”.
JavaScript
var s;
s= Watch.ExpandString("%y-%m-%d");
Watch.Log("Current Date is: " + s, 2);
VBScript
Dim s
s= Watch.ExpandString("%y-%m-%d")
Watch.Log "Current Date is: " + s, 2
Python
s= Watch.ExpandString("%y-%m-%d")
Watch.Log("Current Date is: " + s, 2)
Perl
$s = $Watch->ExpandString("%y-%m-%d");
$Watch->Log("Current Date is: " . $s,2);
Watch.GetConnectToken
The Watch.GetConnectTokenmethod uses the default Connect Server host as defined in the
Workflow preferences (see "OL Connect preferences" on page786) to log into the Connect
Server and retrieve an authorization token.
Syntax
Watch.GetConnectToken()
Page 163