What are different types of variables?

Anmol Soldier1
Tera Contributor

Types

1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron

Did you check doc link. It has everything in detail.

View solution in original post

2 REPLIES 2

Jaspal Singh
Mega Patron

Did you check doc link. It has everything in detail.

Hitoshi Ozawa
Giga Sage

Hi Anmol,

Check the link provided by Jaspal to find a list of variable types that can be selected in Service Catalog types.

To get a list of all field types that can be used in a table, execute the following script. Some type such as days_of_week are hidden type that are not listed in ServiceCatalog but can be used in a form.

FYR,

http://rubenferrero.com/servicenow/hidden-field-types-days-of-week/

Following script will list all types used in ServiceNow.

var gr = new GlideAggregate("sys_dictionary");
gr.addAggregate("COUNT");
gr.groupBy("internal_type");
gr.query();
var typeList = [];
while (gr.next()) {
  typeList.push(gr.getValue("internal_type").toString());
}
typeList.sort();
var typeNames = typeList.join('\n');
gs.info(typeNames);