Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

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:

  1. In the Symbol Script window, select Add Script.

  2. Provide a name to the script.

  3. Select the Display Script Function Browser icon.

  4. In the Script Browser screen, under InTouch, select GetAccessToken to insert the script function or you can manually type.

  5. Select OK.

Script function browser showing GetAccessToken script

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.

In This Topic
TitleResults for “How to create a CRG?”Also Available in