Use of ServiceNow with Rest API(using SOAP UI) to generate mails

nehasr1288
Tera Expert

Hi ,

I have a task to generate or rather insert incidents in Service Now using Rest API explorer from servicenow and soapUI tool.

As soon as incident is inserted from a soapui tool to service now a mail should be generated.

Please anyone know where to begin from?

1 ACCEPTED SOLUTION

Hi Neha,



Please pass the fields in the body of request as shown below, This worked for me.



1) Change media type to json and add your query


2) Add the content-type and accept headers



Rest API.jpg




Thanks


PS: Hit like, Helpful or Correct depending on the impact of the response


View solution in original post

16 REPLIES 16

Thanku sujala for the response but I am working with REST services.Problem is:



1...I don't know what services to configure on servicenow to connect to soapUI


2...How to make a REST request from soapUI


Hi,



Please refer this article on how to setup SOAP UI with Service Now



Mini-Lab: Web Services — Part 1: Using SoapUI to Test ServiceNow WSDL



You cannot send rest requests from SOAP UI, Either user Rest API Explorer in Service Now or use Advanced Rest Client plugin provided by Google Chrome



Advanced REST client - Chrome Web Store




Thanks


PS: Hit like, Helpful or Correct depending on the impact of the response


Hi,



I am able to insert a record through REST API in SOAP UI tool to service now incident table but the only problem is that is not inserting field values.


Only a record is created in service now everytime I run the request from REST API but there are no changes in the fields like category or short description etc.


Please find attached the snapshot.Capture.PNG


Any help regarding this?


Hi,



What method are you using to update the record?




Thanks


PS: Hit like, Helpful or Correct depending on the impact of the response