← Home
🔥0 DAY
0 XP
GlideRecord · Lv 2
🍼 Script Kiddo · ×1.001/496

Set all matched incidents to state 7 (Closed) and persist the change.

🔒 196 harder puzzles locked — reach 🥷 Console Cadet to unlock.

Difficulty

close_old.js
01var gr = new GlideRecord('incident');
02gr.addQuery('state', 3);
03gr.query();
04while (gr.next()) {
05 gr.state = 7;
06 ▢ ▢ ▢ ▢;
07}

Choose the right block