You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This script automates the creation of a **Priority 1 (P1)** Incident in ServiceNow. It is useful for testing, automation, or simulating critical incident scenarios.
This script automates the creation of a **Priority 1 (P1)** Incident in ServiceNow. It is useful for testing, automation, or simulating critical incident scenarios.
4
+
5
+
## 🧩 Purpose
6
+
7
+
To quickly generate a high-priority incident record with predefined values for urgency, impact, and description.
8
+
9
+
## 🛠️ Script Details
10
+
11
+
-**Table**: `incident`
12
+
-**Priority**: 1 (High Impact + High Urgency)
13
+
-**Fields Set**:
14
+
-`short_description`: "Critical system outage"
15
+
-`description`: Detailed explanation of the issue
16
+
-`impact`: 1 (High)
17
+
-`urgency`: 1 (High)
18
+
-`priority`: 1 (Calculated)
19
+
-`assignment_group`: Example group (`NETWORK_SUPPORT`)
20
+
-`caller_id`: Current logged-in user
21
+
22
+
## ▶️ How to Use
23
+
24
+
### Option 1: Background Script
25
+
26
+
1. Navigate to **System Definition > Scripts - Background**
27
+
2. Paste the script
28
+
3. Run it
29
+
30
+
### Option 2: Script Include
31
+
32
+
Wrap the logic in a Script Include and call it from a Flow, Business Rule, or UI Action.
0 commit comments