Skip to content

Commit 47086c2

Browse files
Create README.md
1 parent 11d9b79 commit 47086c2

File tree

1 file changed

+21
-0
lines changed
  • Server-Side Components/Script Includes/Script Include Usage Tracker

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Script Include Usage Tracker
2+
3+
A utility Script Include to help ServiceNow developers identify where a specific Script Include is being referenced across the instance. This is especially useful during refactoring, cleanup, or impact analysis.
4+
5+
## Features
6+
7+
- Scans multiple tables for references to a given Script Include.
8+
- Outputs a list of locations including table name, record name, and sys_id.
9+
- Easily extendable to include more tables or fields.
10+
11+
## Installation
12+
13+
1. Navigate to **System Definition > Script Includes** in your ServiceNow instance.
14+
2. Click **New** and paste the code from `ScriptIncludeUsageTracker.js`.
15+
3. Save and make sure the Script Include is **Client Callable = false**.
16+
17+
## Usage
18+
19+
You can run the Script Include from a background script or another Script Include like this:
20+
var tracker = new ScriptIncludeUsageTracker();
21+
tracker.findUsage('MyScriptInclude');

0 commit comments

Comments
 (0)