How to send JSON response from servicenow to 3rd party application?

Ramya Neelam1
Tera Guru

Hi All,

I want to know how can I send the response I am getting from a Application A to Application B from a Servicenow.

I am using Rest API, written a Rest message and was able to capture the response coming from Application A(captured it in one of the SNOW tables) now I wanted to send this response to Application B. You can consider Applications as two different servicenow instances.

Please provide your suggestions, it would be very much helpful for me.

Thanks in advance.

 

 

1 ACCEPTED SOLUTION

Thanks for your reply, I have fixed my issue, I was sending incorrect data in the http query parameters content section, have corrected it.

 

Thank you.

View solution in original post

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

So you are invoking API for 1 application and receiving response and want to share it with another application

So you will have to consume API of another application and send it

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Thanks for your response, Ankur.

I have API of second application, but when I am sending the response of Application 1, I am seeing empty values in the response body of application B.

Below is the sample requestbody and responsebody

I am capturing the response of 1application in two fields of user table and trying to send them using these two fields "u_mirrored_user_name", "u_mirrored_user_sys_id"(These two fields I have defined in the application B)

find_real_file.png

Hi,

so request body is correct

response is not correct

Then you need to check the API in instance B; what it is doing and how it is sending the response

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Thanks for your reply, I have fixed my issue, I was sending incorrect data in the http query parameters content section, have corrected it.

 

Thank you.