File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff 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
7369Get-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
You can’t perform that action at this time.
0 commit comments