Skip to content

Commit 6dcb406

Browse files
committed
Moved help to make vscode happy
1 parent 868ca49 commit 6dcb406

File tree

1 file changed

+13
-53
lines changed

1 file changed

+13
-53
lines changed
Lines changed: 13 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
1-
<<<<<<< HEAD
1+
function Set-ServiceNowAuth {
22
<#
3-
.SYNOPSIS
4-
Set your Service-Now authentication credentials
3+
.SYNOPSIS
4+
Set your Service-Now authentication credentials
55
6-
.DESCRIPTION
7-
This cmdlet will set your Service-Now authentication credentials which will enable you to interact with Service-Now using the other cmdlets in the module
6+
.DESCRIPTION
7+
This cmdlet will set your Service-Now authentication credentials which will enable you to interact with Service-Now using the other cmdlets in the module
88
9-
.PARAMETER Url
10-
The URL of your Service-Now instance
9+
.PARAMETER Url
10+
The URL of your Service-Now instance
1111
12-
.PARAMETER Credentials
13-
Credentials to authenticate you to the Service-Now instance provided in the Url parameter
12+
.PARAMETER Credentials
13+
Credentials to authenticate you to the Service-Now instance provided in the Url parameter
1414
15-
.EXAMPLE
16-
Set-ServiceNowAuth -Url tenant.service-now.com
15+
.EXAMPLE
16+
Set-ServiceNowAuth -Url tenant.service-now.com
1717
18-
.NOTES
19-
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
18+
.NOTES
19+
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
2020
#>
21-
function Set-ServiceNowAuth {
2221
[CmdletBinding()]
2322
Param (
2423
[Parameter(Mandatory = $true)]
@@ -43,43 +42,4 @@ function Set-ServiceNowAuth {
4342
$Global:serviceNowRestUrl = $serviceNowUrl + '/api/now/v1'
4443
$Global:serviceNowCredentials = $Credentials
4544
return $true
46-
=======
47-
function Set-ServiceNowAuth{
48-
<#
49-
.SYNOPSIS
50-
Configures default connection settings for the Service-Now Instance
51-
.DESCRIPTION
52-
The Set-ServiceNowAuth function configures default connection settings for the Service-Now Instance. These include the instance URL,
53-
authentication credentials and date format.
54-
.INPUTS
55-
None
56-
.OUTPUTS
57-
System.Boolean
58-
.LINK
59-
Service-Now Kingston Release REST API Reference: https://docs.servicenow.com/bundle/kingston-application-development/page/build/applications/concept/api-rest.html
60-
Service-Now Table API FAQ: https://hi.service-now.com/kb_view.do?sysparm_article=KB0534905
61-
#>
62-
param(
63-
# The URL for the ServiceNow instance being used
64-
[parameter(mandatory=$true)]
65-
[string]$url,
66-
67-
# Credential used to authenticate to ServiceNow
68-
[parameter(mandatory=$true)]
69-
[System.Management.Automation.PSCredential]$Credentials,
70-
71-
# The date format specified in the Service-Now Instance, sys_properties table, property glide.sys.data_format. This is required
72-
# to correctly convert datetime fields to the local computer locale format when the DisplayValues parameter of the Get-* functions
73-
# is set to true
74-
[parameter(mandatory=$false)]
75-
[String]$DateFormat=(Get-Culture).DateTimeFormat.ShortDatePattern+' '+(Get-Culture).DateTimeFormat.LongTimePattern
76-
)
77-
78-
$Global:ServiceNowURL = 'https://' + $url
79-
$Global:ServiceNowRESTURL = $ServiceNowURL + '/api/now/v1'
80-
$Global:ServiceNowCredentials = $credentials
81-
$Global:ServiceNowDateFormat = $DateFormat
82-
83-
return $true;
84-
>>>>>>> Add DateFormat global variable and comment based help
8545
}

0 commit comments

Comments
 (0)