Group approval when user click on "Onhold" we need to put all group approval users state to OnHold.

shashanksha
Tera Contributor

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.

 

shashanksha_1-1738312854530.png

 

shashanksha_0-1738312643175.png

 

 

 

 

 

Thanks,

Shashank Sharma

4 REPLIES 4

Viraj Hudlikar
Tera Sage

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.

Ankur Bawiskar
Tera Patron
Tera Patron

@shashanksha 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hello @Ankur Bawiskar ,

 

As of now when clicking on Onhold button just puting the "sysapproval_approver" table state to "OnHold". 

@shashanksha 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader