Skip to content

Commit 5c27ff1

Browse files
authored
Update Readme.md
1 parent 0a639f8 commit 5c27ff1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Readme.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,14 @@ Get-ServiceNowRecord -Table incident -Filter $filter
6565

6666
### Retrieving an Incident Containing the Word 'PowerShell'
6767

68-
```PowerShell
69-
Get-ServiceNowIncident -MatchContains @{short_description='PowerShell'}
70-
```
71-
or new with v2.2
7268
```PowerShell
7369
Get-ServiceNowRecord -Table incident -Filter @('short_description','-eq','PowerShell')
7470
```
7571

7672
### Update a Ticket
7773

7874
```PowerShell
79-
Get-ServiceNowIncident -Limit 1 -MatchContains @{short_description='PowerShell'} | Update-ServiceNowIncident -Values @{comments='Updated via PowerShell'}
75+
Get-ServiceNowRecord -First 1 -Filter @('short_description','-eq','PowerShell') | Update-ServiceNowIncident -Values @{comments='Updated via PowerShell'}
8076
```
8177

8278
### Creating an Incident with custom table entries

0 commit comments

Comments
 (0)