Response code for REST triggered flows
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2023 02:28 AM
Hello!
We have a REST-triggered flow that needs to return a specific response code - 200. One would expect that to be the norm but it seems that ServiceNow returns 202 (Accepted). This functionality is often used for webhooks and most webhooks expect to receive response 200 (OK).
Unlike "normal" flows, REST-triggered flows don't seem to have the possibility to set the output values like response code and response body in the UI.
Are we missing something? Is it really impossible to set the response code in REST-triggered workflows?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2023 03:03 AM
Bot: The response code for REST triggered flows is 200. This code indicates that the request was successful and the response body contains the requested data. Additionally, the response code may also include other codes such as 201 (created), 202 (accepted), 204 (no content), 400 (bad request), 401 (unauthorized), 403 (forbidden), 404 (not found), 500 (internal server error), and 503 (service unavailable).
For asking ServiceNow-related questions try this :
For a better and more optimistic result, please visit this website. It uses a Chat Generative Pre-Trained Transformer ( GPT ) technology for solving ServiceNow-related issues.
Link - https://nowgpt.ai/
For the ServiceNow Certified System Administrator exams try this :
https://www.udemy.com/course/servicenow-csa-admin-certification-exam-2023/?couponCode=NOW-DEVELOPER