How to override a task UI action with a scoped UI action?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2018 09:51 AM
I have this scoped app, and have made a table with a UI action. There is a UI action that is made for the task table with the exact same name, 'Assign to me'. As there is a field in my table which inherits from the task table, that means I have two 'Assign to me' UI actions that appear in the context menu of the table list. I obviously don't want to touch the OOTB UI action which is on the task table, but how do I prevent the task tables UI action from displaying in my context menu and only the UI action that I made?
I have tried putting the task tables UI action in the overrides field of the UI action that i made, but that is counter-intuitive as it hides the UI action that i made whilst showing the task tables UI action.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2018 06:30 PM
Can you add something like: current.getTableName() != "zzz" <-- replace zzz with table name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2018 12:39 AM
Hi,
In condition field of OOB UI action add condition like
current.getTableName()!='Your custom table name'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2018 02:44 AM
Thanks Michael and Shweta, but I tried that, and it still appears in the list context menu. I don't think using 'current' works in list view, only in forms. When I do select the task tables UI action, it does say 'Security does not allow the execution of that action against the specified record'. Which is fine, but I don't want that UI action to appear on the list context menu at all. Any other ideas please?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2018 03:55 AM
Hi,
Please refer the below link,