- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2022 03:32 AM
Hello,
I have the task to show/hide the Export XML option in the context menu only for specific tables and specific user roles.
The problem is that I don't want these users to have access to the Export XML for the OOB tables.
Can someone help?
Best Regards,
Viktor
Solved! Go to Solution.
- Labels:
-
Multiple Versions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2022 03:42 AM
Hi,
go to UI context menu
Open the record for Export on Global table
Then open the Context Menu for XML
Update condition for the table and give the role for which you wish to hide
I am hiding it for incident table and added role
Similarly you can exclude tables you want
gs.hasRightsTo("ui/context_menu.export_xml/read", null) && ListProperties.getTable() != 'incident' && !gs.hasRole('my_role')
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-28-2022 03:42 AM
Hi,
go to UI context menu
Open the record for Export on Global table
Then open the Context Menu for XML
Update condition for the table and give the role for which you wish to hide
I am hiding it for incident table and added role
Similarly you can exclude tables you want
gs.hasRightsTo("ui/context_menu.export_xml/read", null) && ListProperties.getTable() != 'incident' && !gs.hasRole('my_role')
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
‎07-29-2022 08:53 AM
Hi
we have a similar requirement for the show xml context menu, i have tried to use the same condition but still no luck. Just wanted to add one thing here our table is in scoped application.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2022 10:54 PM
Can you post a new question for this as this is quite older one and tag me there?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader