Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to edit the UI action on "Actions on selected rows" on sc_task table, under Approvers tab?

AbdurRahmanSnow
Giga Guru

Good evening.!
How to edit this UI action button "Request approval" on sc_task table, under Approvers tab?

AbdurRahmanSnow_0-1762793297346.png

I want to either edit it to write a script or, remove it? Please help. (Also, please ignore the other "Request Approval" button on the context menu. That is a custom button.)

AbdurRahmanSnow_1-1762793471698.png

@Ankur Bawiskar @Dr Atul G- LNG @Viraj Hudlikar 

1 ACCEPTED SOLUTION

tejarekanda
Tera Expert

I think, We can’t hide a UI Action from the list Choice (like on sc_task) using a condition 

However, we can disable the functionality of that UI Action instead.

I handled this by creating a Script Include to check the table name and then used it in the UI Action’s condition.
Script Include:

tejarekanda_0-1763040120067.png

 

Ui action:

tejarekanda_1-1763040169378.png

Result:
sc_req_item table:

tejarekanda_2-1763040241586.png


sc_task table:

tejarekanda_3-1763040299977.png

Regards,
Teja

View solution in original post

18 REPLIES 18

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @AbdurRahmanSnow 

These are List UI Actions, and you need to uncheck the “List” checkbox by searching for and selecting those specific UI Actions.

You can follow the screenshot shared by Rohila for reference.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Dr Atul G- LNG 
Thank you so much for your reply. 
Since, this button is being also used on RITM table, I don't want modify the script. But how can we restrict this button to not be visible on sc_task table? Please check. I tried everything to restrict it's visibility but nothing works.

Hi @AbdurRahmanSnow 

So, it’s a kind of global UI action. I don’t think it’s easy to restrict."

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron
Tera Patron

@AbdurRahmanSnow

 you can easily find the List UI action on sysapproval_approver table

what's the difficulty?

💡 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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar 
Thank you so much for your reply. 
Since, this button is being also used on RITM table, I don't want modify the script. But how can we restrict this button to not be visible on sc_task table? Please check. I tried everything to restrict it's visibility but nothing works.