Add Adhoc approval

Navneet3
Tera Expert

Hi All,

We have a catalog item which has approval workflow built in. There are times when we need to ad hoc approval to the request. User is able to add an approval but the state does not change to "Requested", User has to manually change the state from Not yet requested to Requested. 

Once the state is changed and the approval approves the request, the others should not have to approve.

 

find_real_file.png

Is there a way to change this behavior?

Thank you in advance.

1 REPLY 1

Mohit Kaushik
Mega Sage
Mega Sage

Hi Navneet,

You can create a Business Rule on approval table. It should run when below conditions meet:

When: Before, Insert

Condition filter: State is 'Not yet requested'.

Script:

if(current.sysapproval.sys_class_name=='sc_req_item')
current.state = 'requested';

 

Please mark this as correct and helpful if it resolved the query or lead you in right direction.

Thanks,
Mohit Kaushik
Community Rising Star 2022

Thanks,
Mohit Kaushik
ServiceNow MVP (2023-2025)