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.

How to set my custom created view by default for all the ITIL Users

shaik_irfan
Tera Guru

Hello,

 

I created a View name it as 'ITIL Custom View' which i need to set it as default all the ITIL Users on Incident table. Can anyone please help me out with this 

1 ACCEPTED SOLUTION

try this,

 

(function overrideView(view, is_list) {

	if (gs.hasRole("itil"))	{
		answer = "ITIL_Custom_View"; 
		return answer;
	}
	answer = "ess";
	
})(view, is_list);

 

 

 

 

 

 

 

Beth has ITIL role,

 

View solution in original post

5 REPLIES 5

try this,

 

(function overrideView(view, is_list) {

	if (gs.hasRole("itil"))	{
		answer = "ITIL_Custom_View"; 
		return answer;
	}
	answer = "ess";
	
})(view, is_list);

 

 

 

 

 

 

 

Beth has ITIL role,