Can we disable inherited UI actions?

andy_dufresne
Tera Expert

Hello Gurus!

I want to avoid writing a client script for this, if possible!

I inherited a 'u_event' table from Incident table and ended up with extra UI Actions that I dont want [example: The incident form has 'email', 'resolve incident', 'convert to service request' etc., UI actions that I dont want].

On the inherited 'u_event' form, I checked the configure -->UI Actions, those Ui actions are associated with Incident only.

How can I disable so that its only disabled on the inherited form [in my example only on 'u_event' form].   Obviously disabling on the Incident works but it is undesirable as it affects the incident users.

I also tried 'current.getRecordClassName() !='u_event'' on the Incident table here is the full condition:   gs.hasRole("itil_admin") || gs.hasRole("itil") && current.getRecordClassName() !='u_event'

that did not work either 😞

Thanks for reading!

1 ACCEPTED SOLUTION

BALAJI40
Mega Sage

try with,


gs.hasRole("itil_admin") || gs.hasRole("itil") && current.sys_class_name!='u_event'



or check the 5th,


http://wiki.servicenow.com/index.php?title=UI_Actions#Restricting_Access_to_UI_Actions


View solution in original post

4 REPLIES 4

BALAJI40
Mega Sage

try with,


gs.hasRole("itil_admin") || gs.hasRole("itil") && current.sys_class_name!='u_event'



or check the 5th,


http://wiki.servicenow.com/index.php?title=UI_Actions#Restricting_Access_to_UI_Actions


andy_dufresne
Tera Expert

Ok, I got this sorted by putting additional paranthesis, like this:



(gs.hasRole("itil_admin") || gs.hasRole("itil") ) &&   current.getRecordClassName() !='u_event'


Thanks for the reply, Balaji, I was missing those additional parenthesis.


If you are viewing this from the community inbox you will not see the correct answer button.   If so, please review How to Mark Answers Correct From Inbox View


How To Mark Answers Correct From Community Inbox