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
throw"Exception: You must do one of the following to authenticate: `n 1. Call the Set-ServiceNowAuth cmdlet `n 2. Pass in an Azure Automation connection object `n 3. Pass in an endpoint and credential"
@@ -75,28 +89,27 @@ function Get-ServiceNowTable {
If (-not [string]::IsNullOrEmpty($SNResult.$Property)) {
82
-
Try {
83
-
# Extract the default Date/Time formatting from the local computer's "Culture" settings, and then create the format to use when parsing the date/time from Service-Now
# DateTime fields returned in the Service-Now instance system date format need converting to the local computers "culture" setting based upon the format specified
Copy file name to clipboardExpand all lines: ServiceNow/Public/Set-ServiceNowAuth.ps1
+17-1Lines changed: 17 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,11 +11,20 @@ The URL of your Service-Now instance
11
11
.PARAMETERCredentials
12
12
Credentials to authenticate you to the Service-Now instance provided in the Url parameter
13
13
14
+
.PARAMETERDateFormat
15
+
The date format specified in the Service-Now Instance, sys_properties table, property glide.sys.data_format. This is required
16
+
to correctly convert datetime fields to the local computer locale format when the DisplayValues parameter of the Get-* functions
17
+
is set to true
18
+
14
19
.EXAMPLE
15
20
Set-ServiceNowAuth -Url tenant.service-now.com
16
21
17
22
.NOTES
18
23
The URL should be the instance name portion of the FQDN for your instance. If you browse to https://yourinstance.service-now.com the URL required for the module is yourinstance.service-now.com
24
+
25
+
.LINK
26
+
Service-Now Kingston Release REST API Reference: https://docs.servicenow.com/bundle/kingston-application-development/page/build/applications/concept/api-rest.html
27
+
Service-Now Table API FAQ: https://hi.service-now.com/kb_view.do?sysparm_article=KB0534905
0 commit comments