Is there a way to receive the payload of post scripted rest API in the ECC queue?

Neeraj1
Kilo Contributor

Our requirement is to get the JSON payload in ECC queue which is coming from a third party consumer by using the POST scripted rest API created in ServiceNow.

1. Is that possible?

1. How to achieve this in ServiceNow?

7 REPLIES 7

Thank you Suresh, I'll try the suggestion. 

If you feel its helped your questions can you please mark as helpful or correct answer for further references.

Regards,
Suresh.

Richard Hine
Tera Guru
Tera Guru

Neeraj,

I don't think I am clear on your question, why would you want to see anything in the ecc queue for this?

If the third parties are using a scripted REST API you have created in ServiceNow, you can see exactly what the request contains using the request object.

For JSON this would be request.body.data, you can either then use a gs.debug to write it to your log, or manipulate it inside the scripted API.

Richard