Skip to content

Commit cf6cd63

Browse files
committed
Added v1.13 cmdlets & example
1 parent 35fbd23 commit cf6cd63

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Readme.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# PSServiceNow
22
[![GitHub release](https://img.shields.io/github/release/Sam-Martin/servicenow-powershell.svg)](https://github.com/Sam-Martin/servicenow-powershell/releases/latest) [![GitHub license](https://img.shields.io/github/license/Sam-Martin/servicenow-powershell.svg)](LICENSE) ![Test Coverage](https://img.shields.io/badge/coverage-68%25-yellowgreen.svg)
33
This PowerShell module provides a series of cmdlets for interacting with the [ServiceNow REST API](http://wiki.servicenow.com/index.php?title=REST_API), performed by wrapping `Invoke-RestMethod` for the API calls.
4-
**IMPORTANT:** Neither this module, nor its creator are in any way affiliated with ServiceNow.
4+
**IMPORTANT:** Neither this module nor its creator are in any way affiliated with ServiceNow.
55

66
## Requirements
77
Requires PowerShell 3.0 or above as this is when `Invoke-RestMethod` was introduced.
@@ -24,6 +24,12 @@ Import-Module PSServiceNow
2424
Get-ServiceNowIncident -MatchContains @{short_description='PowerShell'} -ServiceNowCredential $PSCredential -ServiceNowURL $ServiceNowURL
2525
```
2626

27+
### Example - Update a Ticket
28+
```
29+
$Incident = Get-ServiceNowIncident -Limit 1 -MatchContains @{short_description='PowerShell'}
30+
Update-ServiceNowIncident -SysID $Incident.Sys_ID -Values @{comments='Updated via PowerShell'}
31+
```
32+
2733
### Azure Connection Object (Automation Integration Module Support)
2834
The module can use the `Connection` parameter in conjunction with the included `PSServiceNow-Automation.json` file for use as an Azure automation integration module. Details of the process is available at [Authoring Integration Modules for Azure Automation](https://azure.microsoft.com/en-us/blog/authoring-integration-modules-for-azure-automation).
2935

@@ -43,6 +49,9 @@ The `Connection` parameter accepts a hashtable object that requires a username,
4349
* Remove-ServiceNowTableEntry
4450
* Set-ServiceNowAuth
4551
* Test-ServiceNowAuthIsSet
52+
* Update-ServiceNowChangeRequest
53+
* Update-ServiceNowIncident
54+
* Update-ServiceNowTableEntry
4655

4756
## Tests
4857
This module comes with [Pester](https://github.com/pester/Pester/) tests for unit testing.

0 commit comments

Comments
 (0)