instance scan

shivaadapa
Tera Expert

Hi 

Is instance scan can run on OOB records? can I get OOB records as findings?

15 REPLIES 15

Mark Roethof
Tera Patron
Tera Patron

Apparently I've written an article almost 3 years ago which mentions some cases OOB records are and are not scanned:

https://www.servicenow.com/community/developer-blog/creating-your-own-instance-scan-scan-checks/ba-p...

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Mark Roethof
Tera Patron
Tera Patron

Any feedback? I do see you are posting new questions, please follow-up and finish you old posts first.

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Hi @Mark Roethof 

Thank You for Your help. But that column type check not giving correct findings. it's giving only 2 findings. 

2 findings? On what actually? Or is this a reply which should have been on one of your other topics?

 

Please make sure you closing topics, before raising many new ones.

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Hi @Mark Roethof 

Hi @Mark Roethof 

You gave me the Regular expression which is not giving correct findings. Please once again check this one:-

(function (engine) {

    // Remove code comments
    var commentsRegEx = /\/\*[\s\S]*?\*\/|([^:]|^)\/\/.*$/gm;
    var commentsRemovedValue = engine.columnValue.replace(commentsRegEx, '');

    var search_regex = /\bGlideRecord\(['"]sys_object_source['"]\)/;

    // Create scan finding
    if(search_regex.test(commentsRemovedValue)) {
        engine.finding.increment();
    }

})(engine);