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
Get incident records where state equals New or short description contains the word powershell
@@ -106,7 +106,7 @@
106
106
.EXAMPLE
107
107
gsnr RITM0010001
108
108
Get a specific record by number using the function alias
109
-
109
+
110
110
.INPUTS
111
111
None
112
112
@@ -205,13 +205,13 @@ function Get-ServiceNowRecord {
205
205
}
206
206
}
207
207
}
208
-
208
+
209
209
if ( $Id ) {
210
210
if ( $Id-match'^[a-zA-Z0-9]{32}$' ) {
211
211
if ( -not$thisTable ) {
212
212
throw'Providing sys_id for -Id requires a value for -Table. Alternatively, provide an Id with a prefix, eg. INC1234567, and the table will be automatically determined.'
213
213
}
214
-
214
+
215
215
$idFilter=@('sys_id','-eq',$Id)
216
216
}
217
217
else {
@@ -226,19 +226,19 @@ function Get-ServiceNowRecord {
0 commit comments