- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 10:56 AM
I'm looking for a way to manually trigger another approval request outside of the workflow. The requirement is when a sctask is assigned to an assignment group and they need additional approvals on this RITM. Under the approval tab on the RITM I can see under the drop down "Actions on selected rows" Request approval. How is this function used, is it like doing an ad hoc approval? and I'm an admin and it's grayed out for me. (see screen shots)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2023 09:59 PM - edited 08-30-2023 02:00 AM
Hello @Julie Catano ,
Kindly Update your BR with the following details, It will achieve your requirement. Write Before Insert Business rule
Before insert business rule
Table: sysapproval_approver
Condition: current.sysapproval.sys_class_name=='sc_req_item'
Script:
(function executeRule(current, previous /*null when async*/) {
//current.state='requested'; // If you want to add approval as requested state initially add this line otherwise ignore
// Add your code here
var gr=new GlideRecord('sc_req_item');
gr.get(current.sysapproval.sys_id);
gr.approval='requested';
gr.update();
})(current, previous);
Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 11:15 AM
Hi Julie,
As a suggestion, why not create a UI Action: Adhoc Approvals & make it available to the required team. If they need they can click on this button & the button will hold underlying logic that will create an Approval record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 11:23 AM - edited 08-25-2023 11:26 AM
Hello @Julie Catano ,
Kindly follow the below mentioned steps to add manual approval.
1.Right click on any field in related list of approval tab then go to configure and then to list control.
2. After opening of this page kindly verify omit edit button is unchecked, If it's checked, uncheck that and save the changes.
3. After saving configuration verify edit button on related list is visible.
4. Click on Edit button and add user whom you want select as approval, Then that user will dispay on the list in 'Not yet requested' state
5. Click on check box in first column of list the that user(Row) will be selected.
6. Then Click on the dropdown "Action on selected row" and select the action 'Request Approval' So state will be change to 'Requested' and manual approval will trigger successfully.
Kindly let me know if there is any question.
Thanks,
Sunny R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 02:22 PM
I like this solution, but do I have to have a Business Rule to trigger the approval table so that he RITM state will change to waiting approval? If so, do you have the code for the BR that would do this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 09:53 PM
did you try my solution it works in BR , let me know if you have any issue
Regards,
Shyamkumar