-
Is there a way to update non-catalog requests? I've tried... |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Are you sure it's the Update command that's failing and not Get? Also, sometimes the class of a table, which is what is picked up from the pipeline, is not the same as the database name. Try adding |
Beta Was this translation helpful? Give feedback.
-
This is a custom table so any number of issues might be occurring. What results do you get if you run |
Beta Was this translation helpful? Give feedback.
-
This is the solution. |
Beta Was this translation helpful? Give feedback.
This is the solution.
Get-ServiceNowRecord -Table 'u_non_catalog_request' -ID NON0301378 | Update-ServiceNowRecord -Table 'u_non_catalog_request' -Values @{"comments" = "This is a new additional comment.";"notify" = $true;"type" = "Additional Comments";"created_by" = $SNOWCred.UserName}