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: CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,11 @@
1
+
## v2.0
2
+
- Although still in the module for backward compatibility, `Set-ServiceNowAuth` is being replaced with `New-ServiceNowSession`. With this comes OAuth support, removal of global variables, and much more folks have asked for. The ability to provide credentials directly to functions has been retained for this release, but will be deprecated in a future release in favor of using `New-ServiceNowSession`.
3
+
- Support for different api versions. `Set-ServiceNowAuth` will continue to use v1 of the api, but `New-ServiceNowSession` defaults to the latest. Check out the `-ApiVersion` parameter of `New-ServiceNowSession`.
4
+
-`Remove-ServiceNowAuth` has been retained for this release, but as global variables have been removed, there is no longer a need for it; it will always return `$true`. It will be removed in a future release.
5
+
-`-PassThru` added to remaining `Update-` and `New-` functions. Depending on your code, this may be a ***breaking change*** if you expected the result to be returned.
6
+
- Pipeline support added to many functions
7
+
- Standardizing on coding between all functions
8
+
1
9
## v1.8.1
2
10
- Update links to reference the new GitHub organization this project will be moved to. Module functionality unchanged.
Copy file name to clipboardExpand all lines: Readme.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,16 @@ This PowerShell module provides a series of cmdlets for interacting with the [Se
6
6
7
7
**IMPORTANT:** Neither this module nor its creator are in any way affiliated with ServiceNow.
8
8
9
+
## Version 2
10
+
11
+
Building on the great work the community has done thus far, a lot of new updates with this release.
12
+
- Although still in the module for backward compatibility, `Set-ServiceNowAuth` is being replaced with `New-ServiceNowSession`. With this comes OAuth support, removal of global variables, and much more folks have asked for. The ability to provide credentials directly to functions has been retained for this release, but will be deprecated in a future release in favor of using `New-ServiceNowSession`.
13
+
- Support for different api versions. `Set-ServiceNowAuth` will continue to use v1 of the api, but `New-ServiceNowSession` defaults to the latest. Check out the `-ApiVersion` parameter of `New-ServiceNowSession`.
14
+
-`Remove-ServiceNowAuth` has been retained for this release, but as global variables have been removed, there is no longer a need for it; it will always return `$true`. It will be removed in a future release.
15
+
-`-PassThru` added to remaining `Update-` and `New-` functions. Depending on your code, this may be a ***breaking change*** if you expected the result to be returned.
16
+
- Pipeline support added to many functions
17
+
- Standardizing on coding between all functions
18
+
9
19
## Version 1
10
20
11
21
The module has been renamed from PSServiceNow to ServiceNow for version 1. This change moves us away from the reserved "PS" prefix. Since the name change is a major change for the user base and the project was never incremented to v1 we've taken the opportunity to label it such.
@@ -108,12 +118,11 @@ The `Connection` parameter accepts a hashtable object that requires a username,
Copy file name to clipboardExpand all lines: ServiceNow/Public/New-ServiceNowSession.ps1
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ Create a new ServiceNow session
6
6
Create a new ServiceNow session via credentials, OAuth, or access token.
7
7
This session will be used by default for all future calls.
8
8
Optionally, you can specify the api version you'd like to use; the default is the latest.
9
+
To use OAuth, ensure you've set it up, https://docs.servicenow.com/bundle/quebec-platform-administration/page/administer/security/task/t_SettingUpOAuth.html.
9
10
10
11
.PARAMETERUrl
11
12
Base domain for your ServiceNow instance, eg. tenant.domain.com
@@ -25,6 +26,31 @@ Specific API version to use. The default is the latest.
25
26
.PARAMETERPassThru
26
27
Provide the resulting session object to the pipeline as opposed to setting as a script scoped variable to be used by default for other calls.
27
28
This is useful if you want to have multiple sessions with different api versions, credentials, etc.
0 commit comments