Skip to content

Commit f8f3f77

Browse files
committed
Edited Get-ServiceNowTable so it doesn't return $Body
Cmdlets that utilized Get-ServiceNowTable would return the value of $Body as the first record. Removed the line causing its entry.
1 parent e6d11ad commit f8f3f77

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

PSServiceNow-Tables.psm1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ function Get-ServiceNowTable
7575
$Body.sysparm_query = $Query
7676
}
7777

78-
$Body
79-
8078
# Fire and return
8179
$Uri = $ServiceNowURL + "/table/$Table"
8280

@@ -145,7 +143,7 @@ function New-ServiceNowTableEntry{
145143

146144
$Body = $Values | ConvertTo-Json;
147145

148-
#Convert to UTF8 array to support special chars such as the danish "æ","ø","å"
146+
#Convert to UTF8 array to support special chars such as the danish "","",""
149147
$utf8Bytes = [System.Text.Encoding]::UTf8.GetBytes($Body)
150148

151149
# Fire and return

0 commit comments

Comments
 (0)