Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

GlideEncryption Deprecation

LRhodes
Tera Guru

I'm having some trouble amending the GlideEncryption (now deprecated) with one of ServiceNows alternatives.

We have a workflow that still uses GlideEncryption to create ECC Queue record to send parameters to MID Server. It still works, but we need to update it. I've followed all the alternatives supplied by ServiceNow in this KB but none of them are working.

 

Has anyone updated decryption script similar to the one below successfully that could share some insight?

function getCredentials() {
	var objReturn = {};
	var grSAPB = new GlideRecord('sys_auth_profile_basic');
	if(grSAPB.get(gs.getProperty('sjp.apintegration.basic_auth_credentials'))) {
		objReturn = {
			"username": grSAPB.username,
			"password":new GlideEncrypter().decrypt(grSAPB.getValue('password')) 
		};
	}
	return objReturn;

}

 

0 REPLIES 0