← Home
🔥0 DAY
0 XP
Policy & Compliance · Lv 1
🍼 Script Kiddo · ×1.001/1

Trigger an attestation when a control's next review date arrives.

Difficulty

No medium puzzles here — showing all.
control_attest.js
01// Scheduled job — daily
02var gr = new GlideRecord('sn_compliance_control');
03gr.addQuery('next_review_date', '<=', gs.nowDateTime());
04gr.addQuery('state', 'monitor');
05gr.query();
06while (gr.next()) {
07 ▢ ▢ ▢ ▢;
08}

Choose the right block