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 86a1473 commit 1a16ab0Copy full SHA for 1a16ab0
Server-Side Components/Background Scripts/Get top 10 largest attachment/README.md
@@ -0,0 +1,19 @@
1
+# Top 10 Largest Attachments in ServiceNow
2
+
3
+This script retrieves and logs the top 10 largest file attachments from the `sys_attachment` table in ServiceNow.
4
5
+## Script Purpose
6
7
+- Find the largest attachments stored in the instance.
8
+- Display file name, size in MB, and the related table.
9
10
+## How It Works
11
12
+- Queries the `sys_attachment` table.
13
+- Sorts by `size_bytes` in descending order.
14
+- Limits results to 10.
15
+- Converts size to MB and logs details using `gs.info()`.
16
17
+## Usage
18
19
+Run this script in a **Background Script** or **Script Include** in ServiceNow.
0 commit comments