- 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-28-2025 08:55 PM
Nope it won't affect
That's what we are doing in above, we are overriding it for incident table and it will only work and reflect for incident table and not impact anywhere in instance.
I believe I have answered 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-30-2025 05:20 AM
Will this show 2 Exports in the List View for my custom table?
thanks.