Scripting

/Scripting

Prevent Circular Relationships in ServiceNow

By | March 16th, 2011|Categories: Business rules, Script includes|

Almost any database will have situations where a record in a table can relate back to other records in that same table. This happens in ServiceNow in several places and it’s common enough that you may find yourself building additional functionality that works this way. The classic case is the ‘Parent’ field. A good example is [...]

Lock/Unlock glide_list and URL Fields With Client Scripts

By | March 1st, 2011|Categories: Client scripts|Tags: , , , , |

I’ve answered several questions in the past about the functionality of lock icons in Service-now. Lock icons appear on glide_list and URL fields. The most-common example is the ‘Watch list’ field on the task table. Service-now provides some system properties to manage the default lock appearance of these field types. There are times when a global [...]

Identifying the Client or Session IP Address

By | February 28th, 2011|Categories: Scripting|Tags: , , , |

As a Service-now administrator or consultant, you may run into situations where it is necessary to identify the IP address of a user session before performing some action. These situations are almost always security-related. For example, you may want to restrict the ‘Delete’ operation for Change request tickets to users at a specific location, or you [...]

Pause or Toggle a Time Worked Field Timer

By | February 22nd, 2011|Categories: Client scripts, System UI|Tags: , , , |

T here are several ways to do time tracking in ServiceNow. One of the ways used frequently (especially in Incident Management) is the ‘Time Worked’ field. The ServiceNow wiki describes this functionality. I often see the requirement to have some control over the stop/start of this Time Worked field for customers [...]