GlideEncrypter API is deprecated, GlideElement API is suggested for encryption using setDisplayValue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 02:21 AM
Hi All,
GlideEncrypter API is deprecated, GlideElement API is suggested for encryption using setDisplayValue() method.
I am not able to achieve the result using the same API and method.
Ca someone help how we can encrypt the data using this API, or if there is any other alternative.
Please hep with the piece of code

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 05:31 AM
What have you tried so far?
From memory, the format would be:
//<gliderecordObj>.<field>.setDisplayValue(<value>)
current.password.setDisplayValue('mySecurePassword');
current.setDisplayValue('password' , 'mySecurePassword');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 11:44 PM
Given solution is not working for me,
I tried two ways, can you please check and correct me
Also please let me know how setDisplayValue() will encrpyt the password when it return void

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2024 03:57 AM
What's the field type of u_password. Further details can be found in KB1320986
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2024 01:12 AM
Field is of string type