Is there a way to receive the payload of post scripted rest API in the ECC queue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2022 07:49 AM
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?
- Labels:
-
IntegrationHub
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2022 08:23 AM
Thank you Suresh, I'll try the suggestion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2022 08:24 AM
If you feel its helped your questions can you please mark as helpful or correct answer for further references.
Suresh.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2022 08:48 AM
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