Manual approval on Generic Service Request?

Community Alums
Not applicable

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 -

find_real_file.png

Thanks!
Alex

 

1 ACCEPTED SOLUTION

Voona Rohila
Mega Patron
Mega Patron

Hi Alex

Once approvers are added using edit option, we can request for approval

find_real_file.png

check similar query below: 

https://community.servicenow.com/community?id=community_question&sys_id=5eb29005dbdb9f408e7c2926ca96...


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

View solution in original post

9 REPLIES 9

Community Alums
Not applicable

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

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

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

Community Alums
Not applicable

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

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