This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To be used directly from the console | |
// CSV fields | |
var FIELDS = "field_1,field_2,field_3".split(","); | |
var counter = 0; | |
// Dynamic creation of data for the fields defined here | |
var GENERATED_FIELDS = { | |
field_1: function(){ | |
counter = counter + 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
var text = ""; | |
var printl = function(str){ | |
text = text + str + '\n'; | |
}; | |
var println = function(str) { | |
if(str){ | |
text = text + str + '\n\n'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(sourceMapSysId, targetMapSysId, targetTableName){ | |
var grNewMap = new GlideRecord('sys_transform_map'); | |
if(!grNewMap.get(targetMapSysId)){ | |
return; | |
} | |
var grOriginalMap = new GlideRecord('sys_transform_map'); | |
if(!grOriginalMap.get(sourceMapSysId)){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var category2 = new GlideHTTPResponse(); | |
gs.print(typeof GlideHTTPResponse); | |
gs.print(typeof category2); | |
var output = ''; | |
var property; | |
for (property in category2) { | |
try{ | |
output += property + ': ' + category2[property]+'; \n'; |