To add an item/option in List context menu for scoped Application

Gulzar Manuja2
Kilo Guru

Hi All,

I am trying to do a task where I have to add an additional item (example: Sample Option) to the Configure option in Form context menu which appears after right-clicking the form header. I created a new UI Context Menu as shown below:

find_real_file.png

When I checked the available options by right clicking the list, this newly added item appeared in the menu as shown below:

find_real_file.png

Now the problem is when I added two additional conditions i.e. !ListProperties.isRelatedList() && !ListProperties.isRefList():

find_real_file.png

'Sample Option' is no longer present in the right click context menu as shown below:

find_real_file.png

These additional conditions work when I apply it on a global table. But I am trying to add this option on a scoped table/application. So I want to know if this !ListProperties.isRelatedList() && !ListProperties.isRefList() conditions work only on global tables ?? If yes, is there any way to apply these conditions on a scoped table.

Any help would be highly appreciated.

Note: Helsinki version is configured on my ServiceNow instance.

Thanks & Regards,

Gulzar Manuja

5 REPLIES 5

jwawa
Tera Contributor

Hi gulzarmanuja, I know it's been a long time since you posted this, but did you ever find a solution? I'm encountering the exact same issue myself (scoped app table, using !ListProperties.isRelatedList() and !ListProperties.isRefList() in the UI Context Menu condition along with a simple gs.hasRole() condition) and it isn't working for me either. (London release)