background_scripts
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
background_scripts [2024/12/12 12:13] – johnsonjohn | background_scripts [2024/12/12 12:22] (current) – johnsonjohn | ||
---|---|---|---|
Line 205: | Line 205: | ||
---- | ---- | ||
- | =====Unlock PROD===== | + | =====Unlock |
< | < | ||
+ | ClearUserLog(); | ||
+ | //Log Time Started | ||
+ | UserLog(" | ||
+ | //Query Table | ||
+ | var gr = new GlideRecord(" | ||
+ | gr.addQuery(' | ||
+ | gr.query(); | ||
+ | while (gr.next()) { | ||
+ | gr.locked_out = false; | ||
+ | gr.setWorkflow(false); | ||
+ | gr.update(); | ||
+ | } | ||
+ | |||
+ | //Log Time Ended | ||
+ | UserLog(" | ||
</ | </ | ||
Line 214: | Line 229: | ||
=====Update Time Zone===== | =====Update Time Zone===== | ||
< | < | ||
+ | ClearUserLog(); | ||
+ | //Log Time Started | ||
+ | UserLog(" | ||
+ | |||
+ | //Query Table | ||
+ | var gr = new GlideRecord(' | ||
+ | gr.addNotNullQuery(' | ||
+ | gr.addNullQuery(' | ||
+ | gr.query(); | ||
+ | |||
+ | //Update Records | ||
+ | while (gr.next()) { | ||
+ | gr.time_zone = gr.location.time_zone; | ||
+ | gr.setWorkflow(false); | ||
+ | gr.update(); | ||
+ | } | ||
+ | //Log Time Ended | ||
+ | UserLog(" | ||
</ | </ | ||
---- | ---- |
background_scripts.1734034424.txt.gz · Last modified: 2024/12/12 12:13 by johnsonjohn