Using workflow to Request for an approval that is already closed

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-10-2024 11:05 AM - edited ā06-10-2024 11:06 AM
Hi @OlaN,
Can you please help me with the workflow where, suppose a request is sent for approval. A group member approves it. The requirement is to see the same request can be sent back for approval again (state as Requested). I tried for it, but not working as expected. Kindly help.
Regards
Suman P.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-11-2024 02:31 AM
Hello,
There is a similar requirement like mine in the post.
But for me it is a group approval. How would I change the script, so it would work for group approval please.
var rec = new GlideRecord('sysapproval_approver');
rec.addQuery('sysapproval', current.sys_id);
rec.addNullQuery('wf_activity');
rec.query();
while(rec.next()){
rec.state = 'not requested';
rec.comments = 'Approval rolled back by change workflow.';
rec.update();
}
Regards
Suman P.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-11-2024 02:53 AM
Hi @Community Alums
Once a request has been approved, why you sent back (The requirement is to see the same request can be sent back for approval again (state as Requested). I tried for it, but not working as expected.)?
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-11-2024 03:38 AM
Hi @Dr Atul G- LNG,
My requirement is "When I open my submitted request, I cannot make changes, can we make it so that I can make changes and if done, forces a re-approval from anyone who has already approved?" Kindly help if possible.
Regards
Suman P.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-11-2024 03:44 AM
Hi @Community Alums
NO, as per standard and OOTB process, once a request submitted we cant change any thing or should not change as well that is not a recommended also it may impact already attached flow / wf as well. So it must be rejected by approver or user can call SD to cancel it or make change in variable if SD is allowed to make changes.
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]
****************************************************************************************************************