Set a custom view as default for a custom module

Arka Banerjee
Kilo Guru

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

 

ArkaBanerjee_0-1743676669616.png

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.

 

ArkaBanerjee_1-1743676769965.png

 

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

ArkaBanerjee_3-1743677803931.png

 

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.

 

ArkaBanerjee_2-1743677456289.png

 

 

Can someone please help me resolve these, thanks!

 

@Ankur Bawiskar 

 

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Arka Banerjee 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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..