- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2023 10:19 PM
Hi all,
In General ITIL users will land up into navigation page, but i want to change the default landing page to Agent workspace page instead of navigation page. Is it possible to change the default landing page.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2023 10:53 PM
Create a group for ITIL users. Assign 'itil' role to the group
Create a business rule (After insert - Condition: Group is 'ITIL groupname' ) on Group Member table
(function executeRule(current, previous /*null when async*/ ) {
var gr = new GlideRecord('sys_user_preference');
gr.addQuery('name', 'my_home_navigation_page');
gr.addQuery('user', current.user.toString());
gr.query();
if (gr.next()) {
gr.value = '/workspace/agent';
gr.update();
} else {
gr.value = '/workspace/agent';
gr.name = 'my_home_navigation_page';
gr.user = current.user.toString();
gr.insert();
}
})(current, previous);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2023 12:26 AM - edited 01-25-2023 12:27 AM
Hi @Kumar147,
The above BR is applicable for domain-separated instances, Write BR on the required Domain then logic should work.
Regards, Shekhar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2023 10:53 PM
Create a group for ITIL users. Assign 'itil' role to the group
Create a business rule (After insert - Condition: Group is 'ITIL groupname' ) on Group Member table
(function executeRule(current, previous /*null when async*/ ) {
var gr = new GlideRecord('sys_user_preference');
gr.addQuery('name', 'my_home_navigation_page');
gr.addQuery('user', current.user.toString());
gr.query();
if (gr.next()) {
gr.value = '/workspace/agent';
gr.update();
} else {
gr.value = '/workspace/agent';
gr.name = 'my_home_navigation_page';
gr.user = current.user.toString();
gr.insert();
}
})(current, previous);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2023 11:00 PM
Hello @Shruti
Thank you for your reply.
Is this applicable for domain separated instance, it should not affect the other domains.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2023 12:26 AM - edited 01-25-2023 12:27 AM
Hi @Kumar147,
The above BR is applicable for domain-separated instances, Write BR on the required Domain then logic should work.
Regards, Shekhar