Hi @jansi rani krishnan ,
what are you trying to achieve with the REST web service call?
Query ServiceNow Incident: https://chen.about-powershell.com/2018/07/tip-query-servicenow-incident-record-using-powershell-and-rest-api/
Create a ServiceNow Incident: https://www.alanps1.io/powershell/servicenow-create-an-incident-ticket-using-powershell-via-rest-api/
In the first example the Invoke-RestMethod
command is used. The second example is using the Invoke-WebRequest
command.
Both commands can be used to interact with a REST web service.
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten