- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2022 10:37 AM
We recently added the Vulnerability Response module to our ServiceNow instance at our company. During our early days of figuring out how to properly create VULs to group similar VITs, we now have 3 VCAs with no VIT or VUL included. How do we delete the VCA, without having the ability to click on a VIT or VUL within that VCA?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2022 03:42 PM
By VCA I assume that you mean Vulnerability Change Approval.
If so, you will probably have to delete orphaned approvals with a Fix Script:
- Navigate to: sn_vul_change_approval.list
- Find sys_id's of the record that you want to purge
- Set your Application Scope to Vulnerability Response
- Navigate to: System Definition > Fix Scripts
- Create a Fix Script similar to the following and run it for each VCA sys_id:
var badVCA_ID = "917ae8e6db4c47007a5a596e5e961904";
var grVCA = new GlideRecord('sn_vul_change_approval');
if (grVCA.get(badVCA_ID)) {
gs.info("Deleting: " + grVCA.sys_id)
grVCA.deleteRecord();
}
I hope that this helps,
--Joe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2022 03:42 PM
By VCA I assume that you mean Vulnerability Change Approval.
If so, you will probably have to delete orphaned approvals with a Fix Script:
- Navigate to: sn_vul_change_approval.list
- Find sys_id's of the record that you want to purge
- Set your Application Scope to Vulnerability Response
- Navigate to: System Definition > Fix Scripts
- Create a Fix Script similar to the following and run it for each VCA sys_id:
var badVCA_ID = "917ae8e6db4c47007a5a596e5e961904";
var grVCA = new GlideRecord('sn_vul_change_approval');
if (grVCA.get(badVCA_ID)) {
gs.info("Deleting: " + grVCA.sys_id)
grVCA.deleteRecord();
}
I hope that this helps,
--Joe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-22-2022 04:23 PM
Thank you Joe. That was exactly what I was looking for. Ryan