Name

global.DataPrivatizationTypeChoices

Description

Choice list for job type field based on user session and Data Privacy app.

Script

var DataPrivatizationTypeChoices = Class.create();
DataPrivatizationTypeChoices.prototype = {
  initialize: function() {
  	var supportedChoices = new SNC.DataProtectionJob().getSupportedJobTypeChoices();
  	var choiceList = new GlideChoiceList();
  	var jsonObj = JSON.parse(supportedChoices);
  	for (var value in jsonObj)
  		choiceList.add(value, jsonObj[value]);

  	return choiceList;
  },

  type: 'DataPrivatizationTypeChoices'
};

Sys ID

8817b9a5eb0130108156d2563852285e

Offical Documentation

Official Docs: