- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2021 08:57 PM
Hi,
I want to hide "Export" from the context menu at the top left of the incident form screen, but I don't know how.
If you know, can you tell me?
Regards,
bunai
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2021 09:54 PM
Add this extra condition to hide it only for incident table list
Steps: Visit this URL for Context Menu -> Export
URL: https://instanceName.service-now.com/nav_to.do?uri=sys_ui_context_menu.do?sys_id=d1ad2f010a0a0b3e005c8b7fbd7c4e28
Existing Condition: !ListProperties.isRelatedList() && !ListProperties.isRefList()
New Condition: !ListProperties.isRelatedList() && !ListProperties.isRefList() && ListProperties.getTable() != 'incident'
Output: EXPORT Option is Disabled only for incident
OUTPUT: Export Show for Other tables
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2021 10:06 PM
Hi
Great thing! Thanks for that additional info! You know how to rock the API 🙂
You can also combine it, so that only users with the "itil" role are restricted to the Export on the "Incident" table, like shown in the screenshot below:
Let me know if that answers your question and mark my answer as correct and helpful.
BR
Dirk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2023 12:23 PM
Hello, can I use the gs.getUser().isMemberOf('group name') in the condition?