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
Copy file name to clipboardExpand all lines: ServiceNow/Public/New-ServiceNowIncident.ps1
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -10,20 +10,20 @@ Generate a basic Incident attributed to the caller "UserName" with descriptions,
10
10
New-ServiceNowIncident -Caller "UserName" -ShortDescription = "New PS Incident" -Description = "This incident was created from Powershell" -AssignmentGroup "ServiceDesk" -Comment "Inline Comment" -Category "Office" -Subcategory "Outlook" -ConfigurationItem UserPC1
11
11
12
12
.EXAMPLE
13
-
Generate an Incident by "Splatting" all fields used in the 1st example plus some additional custom ServiceNow fields (These must exist in your ServiceNow Instance):
14
-
15
-
$IncidentParams = @{Caller = "UserName"
16
-
ShortDescription = "New PS Incident"
17
-
Description = "This incident was created from Powershell"
18
-
AssignmentGroup "ServiceDesk"
19
-
Comment "Inline Comment"
20
-
Category "Office"
21
-
Subcategory "Outlook"
22
-
ConfigurationItem UserPC1
23
-
CustomField = @{u_custom1 = "Custom Field Entry"
24
-
u_another_custom = "Related Test"}
25
-
}
26
-
New-ServiceNowIncident @Params
13
+
Generate an Incident by "Splatting" all fields used in the 1st example plus some additional custom ServiceNow fields (These must exist in your ServiceNow Instance):
14
+
15
+
$IncidentParams = @{Caller = "UserName"
16
+
ShortDescription = "New PS Incident"
17
+
Description = "This incident was created from Powershell"
0 commit comments