- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2017 07:38 AM
I created a role "service_desk" and i want everyone with this role to use the default view when accessing incident table. I was able to do this when opening an existing record but it does not work when creating a new one...the ess view is being used
Solved! Go to Solution.
- Labels:
-
Best Practices

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2017 05:51 AM
Have you checked to see if the incident functions business rule is getting in the way? Replace YOURINSTANCE with your instance in the URL below.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2017 03:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2017 03:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2017 06:07 AM
This is what i have
(function overrideView(view, is_list) {
//Force non-itil users to use the ess view
gs.log('is_list: ' + is_list,'debug view rule2');
gs.log('view: ' + view,'debug view rule2');
if (gs.hasRole("itil"))
{
gs.log('test 1','debug view rule2');
return;}
if(gs.hasRole('admin'))
{
gs.log('test 2','debug view rule2');
return;}
if (view.startsWith("ess")&&!gs.hasRole("service_desk"))
{
gs.log('test 3','debug view rule2');
return;}
// do not change view if it starts with sys_ (e.g. sys_ref_list)
if (view.startsWith("sys_")&&!gs.hasRole("service_desk"))
{
gs.log('test 4','debug view rule2');
return;}
answer = ""; // set the new view to answer
})(view, is_list);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2017 05:51 AM
Have you checked to see if the incident functions business rule is getting in the way? Replace YOURINSTANCE with your instance in the URL below.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2017 08:52 AM
Hi Joao,
Why dont you try looking at view rules
http://wiki.servicenow.com/index.php?title=View_Management#gsc.tab=0