Scoped GlideSession - putClientData(String paramName, String paramValue)

Sets a session client value that can be retrieved with getClientData(). This method is used in a server side script that runs when a form is created.

Table 1. Parameters
Name Type Description
paramName String Name of the client data to set.
paramValue String Value of the client data.
Table 2. Returns
Type Description
void

var session = gs.getSession();
session.putClientData('test1', 'Harry');
var clientData = session.getClientData('test1');
gs.info(clientData);

Output:

Harry