Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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