The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Question regarding UI Actions on Extended Tables

CharlesR1
Kilo Guru

Hello,

A quick question - how do I stop a UI Action on one table showing on an extended table? I have tried specifying various criteria on the condition based on differing fields, but it's all a bit messy. Is there a simple condition argument that we can use, something along the lines of current.table='parenttablename' (which doesn't work)?

Thanks

1 ACCEPTED SOLUTION

Mark Stanger
Giga Sage

'current.sys_class_name' should get you the name of the table so you can filter out for extended tables.   If you wanted to set up a UI action just to show on the task table and none of the task extensions for example, you could put this in the 'Condition' field.



current.sys_class_name == 'task'


View solution in original post

3 REPLIES 3

Mark Stanger
Giga Sage

'current.sys_class_name' should get you the name of the table so you can filter out for extended tables.   If you wanted to set up a UI action just to show on the task table and none of the task extensions for example, you could put this in the 'Condition' field.



current.sys_class_name == 'task'


Thanks Mark / Brad - great support as always!


Brad Tilton
ServiceNow Employee
ServiceNow Employee

You can hide it based on the current table using sys_class_name. For example, if I wanted to hide a task table ui action from incident I could do:



current.sys_class_name != 'incident'