REST API - Asynchronous Inbound flow to return sys_id
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2022 10:02 AM
We are using REST API - Asynchronous trigger (post) and created an Inbound flow.
The requirement is after the payload from a 3rd party application is inserted to SN table, we need to do the following :
{
"sysId": "SN SysId"
}Error response
{
"error": "description of error"
}PUT:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2022 10:11 PM
getStatusCode()
so when you execute the command, you should be able to get the Status code back from it.
please see eg: Rest API
Jake
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2022 08:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2023 05:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2023 05:48 AM
When you execute the code that you have defined there in the Web Service, you should be able to define the REST Response which can Include whatever details you have!
You need to do that in one transaction BEFORE rest response sent.
please read the REST descirption from ServiceNow.