- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2025 12:36 AM
Use Case:
I want to hide the Export Context Menu in List View based on the roles or users.
I know you can add condition in the context menu but I dont want to touch that since its a global scope:
!ListProperties.isRelatedList() && !ListProperties.isRefList()
Is there a workaround for this one?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2025 03:14 AM
Simply override that for your table by changing the table from global to your table and perform Insert and Stay
Then add your role based conditions
Then add the child context menus to it by following same procedure
1) open the child context menu from the global table Export, change the table to incident, set parent to Your newly created above record
2) Do Insert and Stay
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2025 02:39 AM
Hi @ican , you can try 'UI Action Visibility' related list to hide/show based on the roles or users.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2025 03:14 AM
Simply override that for your table by changing the table from global to your table and perform Insert and Stay
Then add your role based conditions
Then add the child context menus to it by following same procedure
1) open the child context menu from the global table Export, change the table to incident, set parent to Your newly created above record
2) Do Insert and Stay
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2025 07:47 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2025 05:48 PM
Does this affect the global export context menu?
I dont want to affect it, i want the global one to stay as is and just hide for my custom table depending on role or if a member of a group.
Thanks.