Need to restrict closing sctask when appovers are in requested state
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2024 12:12 AM
I am looking forward for a best solution to restrict the closing of sctask if there is any approval records are in requested state in it's RITM.
I have already setup one BR in sctask table and it is working eventhough I need some solution using some other elements such as modifying existing flow or catalog client script etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2024 01:58 AM
Hi,
You can use Flow Designer's Ask For Approval, use all user approval or reject.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2024 02:42 AM
Hi @geogeorge ,
BR is the best fit for this requirement, if you go for any client side script like onSubmit on that case also you have to make server call to get to know whether any pending approvals are there or not.
You have chosen best solution for this, Not sure how you have written code to achieve it, if you can share the code then i may suggest you some best practice to write the same if you have not followed any best practice guideline.
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------