I am trying to create a ServiceNow
Change Request as one of the steps in my Release. I was trying to Agentless
Phase step (Invoke Rest API: Post).
I found one article online that suggested to create a Generic Endpoint for ServiceNow
. I tried that in the step failed, I'm sure I don't have it set up correctly.
2019-11-12T12:55:28.8833838Z POST https://xyzhelpdesk.service-now.com/api/now/table/change_request Response Code: 0 Response: An error was encountered while processing request.
Exception: {"error":{"message":"Exception while reading request","detail":"Cannot decode: java.io.StringReader@90f857"},"status":"failure"} Exception Message: The remote server returned an error: (400) Bad Request. (type WebException)
The endpoint has a username and password defined, but I think in the setup for Step I may need more information in the Header section.
I can create the CR via a Powershell
script, I guess I could just use that but Not sure the correct way to go.
Basically I want to create a ServiceNow
CR as part of my deployment process. Then there is a TFS
plugin gated step that will check the status on the CR and when it's approves the process moves forward.
Who has examples ?
Thanks