This file contains hidden or 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 SetBSEE = new GlideRecord('sys_user'); | |
| SetBSEE.addEncodedQuery('emailENDSWITHbsee.gov'); | |
| SetBSEE.query(); | |
| while (SetBSEE.next()) { | |
| SetBSEE.company = 'e468c9fcdb2736008c1bfd0e0f9619fc'; | |
| SetBSEE.update(); | |
| } | |
| var SetBOEM = new GlideRecord('sys_user'); | |
| SetBOEM.addEncodedQuery('emailENDSWITHboem.gov'); |
This file contains hidden or 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 BackfillAssignmentGroup = Class.create(); | |
| BackfillAssignmentGroup.prototype = { | |
| initialize: function() { | |
| }, BackfillAssignmentGroup:function() { | |
| var gp = []; | |
| var a = current.assigned_to; //sys_user_grmember has the user to group relationship | |
| var grp = new GlideRecord('sys_user_grmember'); | |
| if(a){ | |
| grp.addQuery('user',a); | |
| } |
This file contains hidden or 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 HiZone = new GlideRecord('sys_user'); | |
| HiZone.addEncodedQuery('stateSTARTSWITHhi'); | |
| HiZone.query(); | |
| while (HiZone.next()) { | |
| HiZone.time_zone = "US/Hawaii"; | |
| HiZone.update(); | |
| } | |
| var AkZone = new GlideRecord('sys_user'); | |
| AkZone.addEncodedQuery('stateSTARTSWITHak'); | |
| AkZone.query(); |