Set a custom view as default for a custom module
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2025 03:57 AM - edited 04-03-2025 03:58 AM
Hi All,
I need to set a custom view as default view whenever a custom module is opened. Additionally I need to restrict the visibility of the view to only 1 assignment group. PFB things done so far
In the above SS, I have set the View Name under link type at module level to the custom view, so that it defaults to this view
Additionally I have set the group under UI views as below, so that only the group members are able to see it.
Issues I am facing:
1. If I am selecting the 'HR User Info' view, then closing and reopening the module, it is landing up on 'HR user Info'(another custom view) view rather than 'Mass operations' view, even though in the url the sysparm_view is showing up as mass_operations itself. Please not that the same is working as expected if I am reopening the module after selecting 'Default' and 'Mass Operations' view
2. Even if a user isn't from 'Mass operations' assignment group, that user is landing on the mass operations view, when the same shouldn't be accessible for that user, but the views for selection does not contain mass operations.
Can someone please help me resolve these, thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2025 04:05 AM
this looks weird.
Is this happening for all users?
Did you try to clear cache using cache.do?
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-04-2025 12:59 AM
Hi Ankur,
Yes, the above errors are happening for all users, I tried clearing cache using cache.do then logged out and logged back in, but its still not resolving the issues..