Name

global.PrivacyCheckDeprecatedTechnique

Description

No description available

Script

var PrivacyCheckDeprecatedTechnique = Class.create();
PrivacyCheckDeprecatedTechnique.prototype = Object.extendsObject(AbstractAjaxProcessor, {
  checkDeprecated: function() {

  	var parameterizedTechniqueId = this.getParameter('sysparm_parameterizedTechniqueId');
  	return this.checkDeprecatedUtil(parameterizedTechniqueId);
  },

  checkDeprecatedUtil: function(parameterizedTechniqueId) {
  	var gr = new GlideRecord('dp_technique_with_params');
  	gr.addQuery('sys_id', parameterizedTechniqueId);
  	gr.query();
  	var result = false;
  	while(gr.next()) {
  		// Check if the parent technique is Replace - DEPRECATED
  		var techniqueId = gr.getValue('technique');
  		if( techniqueId == '26314c3373023010fb1d1f877bf6a711') {
  			result = true;
  		}
  	}
  	return result;
  },

  type: 'PrivacyCheckDeprecatedTechnique'
});

Sys ID

cdb29bc2c36a011077cafcf9f040ddaf

Offical Documentation

Official Docs: