- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-03-2022 11:51 PM
Hello All,
Once again our Cancel UI button did not cancel the running workflow.
UI Action script:
Here's what is happening after clicking cancel button:
State = Closed Incomplete
Stage = Request Cancelled
then the state and stage will change according on the stage set in the Workflow:
This is our workflow:
Is my script on UI Action is not correct? Please help. T__T
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2022 06:31 PM
Hello Ankur, sorry for delay reply. I fixed the issue by updating the existing BR from After to Before update/insert.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2022 12:55 AM
Hi,
you have flow running on your record but you are cancelling workflow from UI action script
check this link
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0959612
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2022 04:43 PM
Hello Ankur,
The Cancel UI Action should cancel any running workflow from different catalog item of RITM.
the link you provided i think need to cancel a specific name of the workflow. How to cancel the workflow for different catalog item that has different workflow? I mean the global cancelation of workflow not just a specific one.
TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2022 06:16 PM
Hello @Ankur Bawiskar , my issue right now is clear.
My workflow has been cancelled whenever i click the cancel UI action BUT the flow stages of the Workflow(Flow designer) still active.
That's why after updating the state and stage to Closed Incomplete/Request Cancelled, the flow stage still updating it.
How to kill the flow stages too? Do you have any idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-05-2022 08:36 PM
check this link
Cancelling flow does not update the stage state
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader