can we place a UI action in a particular view ?

prasanna7869
Mega Expert

Hi Team,

I have a requirement to create a UI Action "mass Update" to mass resolve the incidents based on few conditions. and to make the UI action as List context menu. And it should be visible only under Incident Menu - under "My Group's Incidents" Module. Is that possible to make the UI action visible only in a particular list view ?

Can anyone help me in this ?

3 REPLIES 3

aw_devoteam
Kilo Expert

Section 4.3 of the following page


UI Actions - ServiceNow Wiki


This explains how a Ui action can be limited by view.



From the "UI Action Visibility" related list click "Edit"


This will take you to a slush bucket list of possible views, select the view you would like to apply this to.


Click "Save"



Once saved you will have created and "Include" visibility, open this record from the related list and change the "Visibility" from "Include" to "Exclude"


Apologies


Do not change the "UI Action Visibility" to an exclude, instead keep it as an include, it will only then be visible for that particular view.


geoffcox
Giga Guru

In your UI Action conditions, you can include the following condition: RP.getParameterValue('sysparm_view') == 'viewName' .