Skip to content

Commit c44935a

Browse files
authored
Create Readme.md
This script automates the creation of a **Priority 1 (P1)** Incident in ServiceNow. It is useful for testing, automation, or simulating critical incident scenarios.
1 parent fd3dbf9 commit c44935a

File tree

1 file changed

+35
-0
lines changed
  • Server-Side Components/Background Scripts/Create P1 Incident

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Create P1 Incident – ServiceNow Script
2+
3+
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.
33+
34+
## 🧪 Example Output
35+

0 commit comments

Comments
 (0)