Closed gdbarron closed 1 year ago
@DrMarkX, would you mind testing the fix?
We are able to update a non-catalog request.
We did have to explicitly reference the table type after the pipe.
Get-ServiceNowRecord -Table 'u_non_catalog_request' -ID NON0292380 | Update-ServiceNowRecord -Table 'u_non_catalog_request' -Values @{work_notes = "Updated by PowerShell"}
I just did some testing and custom tables don't have a sys_class_name property so Get-ServiceNowRecord isn't passing it on. I'll make the update to account for it.
Discussed in https://github.com/Snow-Shell/servicenow-powershell/discussions/228