Prevent user to reject approval from SOW

swapnilsoni
Tera Contributor

Hello All,

 

There is a requirement to prevent user to reject approval from related list without putting the comment of rejection in native ui and SOW both.

So in native ui i created oncelledit client script to add one popup to put comment when someone rejecting from list view and mapping it in approval comment. (it is working fine)

But in SOW this client script is not working. so i make the modification in sys_ux_list table for My approvals and All approvals. (it is also working)

Now the issue is, in SOW only if someone open change request or RITM and in related records they open approvals and from there if they rejects it, then it is rejecting. so how can i prevent user to reject approval permanently from list view in SOW. 

 

Please suggest some solution. i am struggling for this in last week. Thanks in advance.

8 REPLIES 8

Ankur Bawiskar
Tera Patron

@swapnilsoni 

better to use data policy or before update BR

that should work for you

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

hi @Ankur Bawiskar 

I tried using before business rule so setabortaction(true) is working there but in SOW infomessage is not working there so it might confused user why this is not changing. So any option to show message in sow when they change state?

@swapnilsoni 

so you are saying BR is working fine but info message is not coming?

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

yes it is aborting to change the state. but info message is not soming in SOW. can you tell me how we can do that?