Snow-Shell/servicenow-powershell

Failure on successful record removal

gdbarron opened this issue · 0 comments

Environment

Operating System: Windows 10
ServiceNow module version: 3.1
PowerShell version: 5.x

Steps to reproduce

Remove-ServiceNowRecord -Table cmdb_rel_ci -SysId 12345677777777

Expected behavior

Record is deleted and no response/output

Actual behavior

Exception on line 173 of Invoke-ServiceNowRestMethod

Line |
173 | throw ('"{0} : {1}' -f $response.StatusCode, $response | Out- …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| "204 :