- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2022 11:04 PM
I am using REST Api - async step where I am getting a payload with these details for change request form -
1. Short Description
2. Description
3. Requester
4. Configuration Item
5. Correlation ID
I have made all these mandatory in the body
Now I see if the body is recieved empty the change is still created and flow is completed and flow execution id is sent as a response.
Ideally , I think it should flow should run into error.
Secondly If the CI which is recieved is not found in ServiceNow or is retired we need to abort the action and send an error message back but I see in this case flow goes into error but still the flow execution id is sent as a response.
Basically how do I send an error response for above cases?
Solved! Go to Solution.
- Labels:
-
Flow Designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2022 11:09 PM
Hello,
Can you try this method
current.setAbortAction(true);
this will abort the current action
Please accept the solution of it helps you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2022 11:09 PM
Hello,
Can you try this method
current.setAbortAction(true);
this will abort the current action
Please accept the solution of it helps you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2022 11:51 PM
What does current represent here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2022 11:11 PM
Hi, Please check below link
https://servicenowguru.com/scripting/stopping-record-submission-servicenow/
https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/administer/flow-designer/concept/flow-logic-end-action.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2022 11:12 PM
Hi,
share your script/screenshot
Based on that only we can suggest something
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
