
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-03-2022 03:22 AM
Hi All,
We have a Generic Service Request form on our Portal, these are always approved/require no approval.
These create REQ (for end user to view/update), RITM (which we do not use), and SCTASK (for Fulfiller to view/update).
On occasion, the request needs approval.
Is there a way to manually add and trigger an approval from the SCTASK? Or would it have to be the RITM? Is so, how would I set this up?
I can see on the SCTASK I can add approvers at the bottom, but nothing happens -
Thanks!
Alex
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-03-2022 03:46 AM
Hi Alex
Once approvers are added using edit option, we can request for approval
check similar query below:
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-03-2022 06:09 AM
Hello!
So I now have it working -
I created a new event called 'approval.needed' as I believe the previous one was also being used as part of a business rule which may have caused the duplication of emails.
I then created a new email notification to trigger on catalogue tasks rather than requested items.
gs.eventQueue('approval.needed', current);
current.state="requested";
current.request.approval=requested;
current.request.request_state=requested;
current.update();
What I'm stuck with now, is how to update all related tickets approval/state. As now, if we're requesting manual approval, we need to change it to requested, pending approval, pending etc.
I tried to add this to the UI action but no luck, any ideas?
Thanks for all your help so far!
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-03-2022 06:21 AM
Modify like below
gs.eventQueue('approval.needed', current);
current.state="requested";
//to update parent record.
var req= current.request.getRefRecord(); //request is your parent record.
if(req.isValidRecord()) { // << only perform operations on it if it's a valid record
req.approval= 'requested';//map proper value here
req.request_state= 'requested';//map proper value here
req.update();
}
current.update();
for remaining states you can handle it in BR on Approval table, make sure your logic only applies if approval is for catalog task table.
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2022 11:53 PM
Hi Alex
Let us know if your issue is resolved?
If yes, can you please mark appropriate response as correct for others who may have a similar question in the future and close this unresolved thread.
If not, please let us know if you need any other help
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2022 01:22 AM
Hi there,
I've marked one of your first answers as correct as it pointed me in the direction, thanks again for this!
To update the requests/requested items, I used the workflow which seems to be working.
thanks you!
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2022 01:47 AM
ThankYou for updating the solution you tried.
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP