If click on the cancel button then It should be auto cancel the ritm on portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2024 11:21 PM
Hi Team,
Good Morning!
If click on the cancel button, then It should be auto cancel the ritm on portal, below is screenshot,
I have defined this code on widget related to cancel button.
<button ng-if="(data.showState == 1 && data.showApp == 'true') || (data.showApp == 'false')" type="button" class="btn btn-success" aria-label="Cancel" ng-click="cancelAction()">Cancel</button>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2024 11:35 PM
Hi @Rajankumar
Greetings!!
I am not sure , will this work or not, bcz RITM is not a single record. In backend, it has linked with REQ and Task and also the whole process drive through Workflow/flow. So we need to build logic in backend , which
- Cancel or move all requested Approvals in cancelled / No Longer Required
- Close the all in progress task as closed incomplete which will close the RITM and REQ.
The process looks easy but need a good efforts.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2024 07:13 AM
Can anyone please help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2024 07:18 AM
Hi @Rajankumar
Sorry mate, I am not a pro/ coder so cant give you the script. But please think, if you build this , it will be technical debt on system.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************