GetAccessToken() Function
- Last UpdatedJul 26, 2024
- 1 minute read
GetAccessToken () provides authentication token, which will be accepted by controls like Trend Control, Alarm Client Control and other InTouch controls, to support Single Sign-On functionality.
Syntax
The syntax of the script function is as follows:
resultCode = GetAccessToken();
Resultcode indicates the latest access token.
Example:
To get the token value renewed every time it expires, you can use the script as follows:
-
In the Symbol Script window, select Add Script.
-
Provide a name to the script.
-
Select the Display Script Function Browser icon.
-
In the Script Browser screen, under InTouch, select GetAccessToken to insert the script function or you can manually type.
-
Select OK.

Return value
The GetAccessToken script function returns the access token with the a token value, if user is authenticated using CONNECT.
The GetAccessToken script function returns an empty string, if user is not authenticated using CONNECT.