We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a67cdb7 commit 3e750c3Copy full SHA for 3e750c3
Specialized Areas/Fix scripts/Delete Obsolete SNC Control Access Records/script.js
@@ -0,0 +1,8 @@
1
+/*
2
+SNC Access Controls table is used to provided access to servicenow technicians when they need access for troubleshtting any instance issue.
3
+This script will delete the SNC access control records which have past end date for better table management.
4
+*/
5
+var delSncAccess = new GlideRecord('snc_access_control');
6
+delSncAccess.addEncodedQuery('end<javascript:gs.beginningOfToday()'); // end date is before today;
7
+delSncAccess.query();
8
+delSncAccess.deleteMultiple(); // delete all snc access records whith past end date.
0 commit comments