Name

global.AutoResolutionMLSolutionChoiceListBuilder

Description

No description available

Script

var AutoResolutionMLSolutionChoiceListBuilder = Class.create();
AutoResolutionMLSolutionChoiceListBuilder.prototype = {
  initialize: function() {
  },
  
  getStateChoiceList: function() {	
  	var language = AutoResolutionUtil.getSessionLanguage();
  	var list = new GlideChoiceList();			
  	var gr = new GlideRecord("sys_choice");				
  	gr.addEncodedQuery("element=state^name=ml_solution^language=" + language);				
  	gr.query();				
  	while (gr.next()) 			
  		list.add(new GlideChoice(gr.value, gr.label));				

  	return list;		
  },

  type: 'AutoResolutionMLSolutionChoiceListBuilder'
};

Sys ID

2cfd682a73321010f14a063f34f6a723

Offical Documentation

Official Docs: