getDecryptedValue(); returns nothing

Kip2350
Tera Contributor

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