Skip to content

Commit 1330b9f

Browse files
authored
Update customTableUsage.js
Add script includes
1 parent d466943 commit 1330b9f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Background Scripts/Custom Table Usage/customTableUsage.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ const USAGE_COUNT_CONFIG = [
1414
{ "table": "sysrule_view", "field": "table", "title": "View Rules" },
1515
{ "table": "wf_workflow", "field": "table", "title": "Workflows" },
1616
{ "table": "sys_hub_flow", "field": "sys_id", "title": "Flows", "query": "", "query_field": "sys_id" },
17+
{ "table": "sys_script_include", "field": "script", "title": "Script Include", 'query': 'CONTAINS'}
1718
];
1819

1920
// get list of fields to query from the table
2021
// grab any fields which are listed as query_fields in the usage config, and add name and label.
2122
var selectFields = USAGE_COUNT_CONFIG.map(function (_obj) {
2223
return _obj.query_field;
2324
}).filter(Boolean);
25+
2426
selectFields.push('name');
2527
selectFields.push('label');
2628

@@ -53,3 +55,6 @@ var gqTables = new global.GlideQuery('sys_db_object')
5355
.reduce(function (arr, e) { arr.push(e); return arr; }, []);
5456

5557
gs.info(JSON.stringify(gqTables, '', 3))
58+
59+
60+

0 commit comments

Comments
 (0)