How can you show a UI action button from one table in a form from another table?

mitzaka
Mega Guru

Hi guys,

 

I have a question about UI actions. It's about Change Management in particular. In changes, you have the Approvers tab, where you can click on an approval, which takes you to the Approval form. Inthere, you can see a form button 'Approve', which is actually a UI Action, bound to the table sysapproval_approver.

 

What I want is to show this form button directly on the Change Form(as well). How can I do that? If I am getting it right, by default the UI actions you see on the change form are bound to the change_request table.

 

If anyone has experience with such interface customization, I will be more than happy to read it:)

Thanks!

6 REPLIES 6

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Sasirekha,



You can create a UI action on change request table and with script GlideRecord the target table and update the values. You have to basically adjust the code of "Return for review" in this script.


Hi Sasirkha,



In order to provide a direction, more information is needed about the requirement.



As with any UI action, you need to ask yourself "When should I display this?" Is this button/link available to everyone? Just approvers? Just in a specific state?



Also, please share the details of what the UI action on the sysapproval_approver table is doing?