Tuesday, May 30, 2017

How to modify the favcon Icon in Service Now Portal and Console

This blog explains about how to modify the 'Favcon' icon in Service Now Portal


Solution

1. Open Active Service Portals ( Service Portals -> Portals)

2. Click on 'Icon' , Select the .gif image that you wanted to use as a favcon

3. Save



Follow below steps to add favcon in Service Now Instance

1. System UI -> Images
2. Add a image , which you wanted to display as favcon
3. System Properties -> Properties
4. As shown below, click on 'Mirror' image and select the favcon image that you have uploaded in above step 2.




Thursday, May 25, 2017

How to Auto Close 'Resolved' Incidents after 7 days in Service Now

This blog explains about how to  to auto  Close any 'Resolved' incidents after 'certain (7 days)' period of time.

Step 1 : Create a Schedule Item as shown below


Step 2 : Create a Business Rule as shown below
Step 3 : Write below script in 'Advanced' tab of above business rule

// This script automatically closes incidents that are resolved
// and haven't been updated in the specified number of days.
// This number is a property in System Properties.
// To place a comment in the incident, uncomment the "gr.comments" line.

autoCloseIncidents();

function autoCloseIncidents() {
var ps = gs.getProperty('glide.ui.autocloseincident.time');
var pn = parseInt(ps);
var queryTime = new GlideDateTime();
queryTime.addDaysUTC(-pn);

if (pn > 0) {
var gr = new GlideRecord('incident');
gr.addQuery('state', 6);
// gr.addQuery('sys_updated_on', '<', queryTime);
gr.addQuery('sys_updated_on', '<', gs.daysAgo(pn));
gr.query();
while(gr.next()) {
gr.state = 7;
//  gr.comments = 'Incident automatically closed after ' + pn + ' days in the Resolved state.';
gr.active = false;
gr.closed_by = gr.resolved_by;
gr.update(); 
}
}
}

Step 4 : Create below System Property (sys_properties.list) for glide.ui.autocloseincident.time 




Schedule Script triggers above business rule every hour and find out any 'Resolved' Incident more than 7 days, it will change the state to 'Closed'










Wednesday, May 17, 2017

How to Enable 'Create New Filter' for anyone

Problem : Allow anyone to 'Create New' filter in Service Now

What is Filter ?

A filter is a set of conditions applied to a table in order to find and work with a subset of the data in that table. Users can apply, modify, create, and save filters. The current filter is indicated by a hierarchical list of conditions—breadcrumbs—at the top of the table. Read More


Implementation

- Make sure you have 'security_admin' role associated .

- Enable 'Elevate Roles'

- Create a new ACL as per below screenshot



- Impersonate with any other role, make sure now you are able to create new filter



Thursday, April 20, 2017

How to Email output of a specific report as an PDF attachment Periodically


Scenario : Capture outcome of a specific report into PDF and send out email as an attachment to specific group or users in Service Now

Solution

- Create a report

- Create a new schedule job, Select 'Automate the generation and distribution of a report' as shown below



- Enter the required fields as shown below


- Select the type as shown below


- Save the Schedule job



How to clear Cache in service now instance

This blog explains about how to clear cache in Service now instance

Solution

<Service Now URL > /cache.do - Paste this on your browser.

Eg : fmdev.service-now.com/cache.do - This will clear the cache and gives you stats.

Tuesday, April 4, 2017

How to share a report to specific role / group / user in Service Now

This blog explains about how to share a report created by specific user to either a group or role or other user in Service Now (Istanbul)

- Create a Report
- Click on 'Save' drop down as shown below and click on 'Sharing'
- If you want to share to 'Groups' or 'Users' then select ' Groups and Users' radio button , Then select the group or user that you want to share.

- If you want to share the report to specific Role, then select ' Everyone' radio button, then select the Role that you want to share

- Click on 'Save' button.

Reports should be accessible to group  or role or user now.


Thursday, March 23, 2017

How to Retire all the CI(Configuration Items) which are 120 days old in CMDB

This blog explains about how to retire all the CI's which are 120 days old in CMDB

Solution

- Create a Schedule Job
- Configure how frequently you want to run this job
- Add below script