getDecryptedValue(); returns nothing
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2025 06:39 AM
Hi All,
I have been trying to replace our GlideEncrypter with getDecryptedValue();. No matter what I do, what kind of record I'm trying to decrypt I get this returned:
*** Script:
[0:00:00.002] Total Time
Script:
var gr2 = new GlideRecord('snmpv3_credentials');
gr2.get("sys_id", "[sysID for record]");
var name = gr2.getElement('name');
var authKey = gr2.getElement('authentication_key');
var pwd = authKey.getDecryptedValue();
gs.print(pwd);
If I print name, it returns name no issue.
I have tried this on our instance and my PDI and on multiple class types. According to the documentation it should work
0 REPLIES 0