Web Services Integration User Guide

sLuintel
Giga Expert

I would like to practice the use of Web Services Integrations between our two pre-production instances. This is because we will be integrating with an external vendor who also uses service now. I would like to test thisand practice this on my internal instances frist,. Is there a user guide or something that I can follow, that will help be create a integration, bi-directional, between my two differrent instances?

I find it quite difficult to follow the service now documents and wiki that I have come through.

I would just like to get the basics known first, and I am sure, I can play around after wards. At this stage, I am not certain where and how I begin.

18 REPLIES 18

Did you try giving the Log Statement and check what Value you are getting in the Num variable as mentioned above?



Regards,


Shloke


Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

How do I do that? I dont believe any values are being pushed through from the source to the target.


Hi,



Place the Log Statement in your Scripted Rest configured on your Test instance as shown below:



Script:



(function process(/*RESTAPIRequest*/ request, /*RESTAPIResponse*/ response) {


  var remote_number = request.u_number1;       Number coming as input from Source Application


  gs.log('Remote Number is' + remote_number);



Then Navigate to Script Log Statement Module as shown below and search for the message as "Remote Number" as shown below:



find_real_file.png



Can you send a screen shot for the Error you are getting while saving the form.



Regards,


Shloke


Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Please see.script1.PNG


Can you have the same literals in Line Number 3. Currently you have given the log as below:



gs.log ('num is: " +num);



which is incorrect as you are starting with a single Quote and ending it with a Double Quote. And Also remove the space after log word and the bracket.Kindly Replace your Log statement Line as below:



gs.log('num is:'   +num);



Regards,


Shloke



Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke