How can we send response of one scripted rest api to another scripted rest api

Lakshmi Meghana
Kilo Contributor

I have created a Scripted Rest API which generates a response, how to send the response to another Scripted Rest API

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Scripted REST API would return the response to the external application which has consumed the ServiceNow Endpoint.

you can consume API and send that response as request body

Regards
Ankur

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

View solution in original post

5 REPLIES 5

Hi,

you can use REST Message to consume the API

RESTMessageV2 - Scoped, Global

Scripting outbound REST

regards
Ankur

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