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

Hi Sujala,



I just used the REST API explorer to insert a record and copied the URL into "new REST project".


Can you please guide on what you suggested.



I used the "inbound web service" in the beginning.


Capture.PNG


Then the table transform map---


Capture.PNG


This creates a new table in the database with the name "incident test".



Then I added to the REST explorer to "POST" a record.


Capture.PNG


A record is created.


But when I try to use this url from SOAP API for REST Service...I get this error everytime:



Capture.PNG


Well using import sets I get the same problem:



Capture.PNG