We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Need to enforce my custom view in list view of Accounts table

Sanchita02
Tera Contributor

I want to enforce a custom view in accounts table for list view

 

I have written the below view rule:

Sanchita02_0-1724407572153.png

 

This view rule enforces this view in form layout but nit in list view.

 

1 REPLY 1

Mark Manders
Mega Patron

Can you do it like this: 

 

if(is_list && gs.hasRole('sn_customerservice_agent')){
answer = 'global_view';
}

 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark