Group approval when user click on "Onhold" we need to put all group approval users state to OnHold.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2025 12:14 AM - edited ‎01-31-2025 12:45 AM
Added New Button "Onhold" on "Approval Info" widgets. In case of group approval when user click on Onhold we need to put all group approval users state to OnHold. As all other state remains in requested. Below is the image that first is approved the it moved to group approval, then if any one user put OnHold state the need to put other requested state should be also OnHold only. Need Help.
Thanks,
Shashank Sharma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2025 01:14 AM
Hello @shashanksha
When Onhold is click are you doing lookup to all group approval records and set them to onhold as required by you? I suspect that is not done, if yes then try to add log statements and see is it going in loop when query is happening.
How to debug in Service Portal check this KB https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0677496
If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.
Thanks & Regards
Viraj Hudlikar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2025 01:38 AM
so when that button is clicked the approval records generated for Group should be marked as what?
Your question is not clear.
Please help with the correct business requirement.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2025 02:06 AM
Hello @Ankur Bawiskar ,
As of now when clicking on Onhold button just puting the "sysapproval_approver" table state to "OnHold".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2025 02:15 AM
so what extra thing is required?
the code where you are doing this, there you can add your extra logic as well
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