Scoped GlideUser - savePreference(String name, String value)

Saves a user preference value to the database.

Table 1. Parameters
Name Type Description
name String The preference to save.
value String The preference value.
Table 2. Returns
Type Description
void
var currentUser = gs.getUser(); 
currentUser.savePreference('myPref','red'); 
gs.info(currentUser.getPreference('myPref'));

Output: