Business rules

//Business rules

Display Messages With UI Notifications

By | February 18th, 2014|Categories: Business rules, UI scripts|Tags: , |

Some time ago we showed you how to refresh the left navigation pane via a script. The server-side solution in that article utilizes ServiceNow’s UINotification object/class. On versions prior to Calgary, this is the Java class Packages.com.glide.ui.UINotification.  There’s another use for UI notifications. In addition to refreshing the left navigator, the object can also be used [...]

Prevent Redundant Approval Requests in ServiceNow

By | December 17th, 2013|Categories: Business rules|Tags: , , , , |

If you’re like many of the customers I’ve worked with, you may have dealt with the frustration of having excess or redundant approval requests come to you from ServiceNow. This happens very often simply because the same user may be responsible for various different tasks in the system. For example, on a change request, I may [...]

Schedule-based Date/Time Addition

By | October 26th, 2011|Categories: Business rules|Tags: , , |

I was recently asked to help a colleague figure out some date calculations based on a schedule. The requirement was to calculate a future date based on the existing value of a date/time field. I decided to document this solution (and come up with a solution for a similar problem…date addition from the current date/time based [...]

Hide Empty Variables on a Standard Form

By | June 16th, 2011|Categories: Business rules, Client scripts|Tags: , , |

Service catalog variables can be a challenge to deal with on standard forms when they are displayed in a variable editor. I’ve written before about different ways that you can solve one of these challenges…making the variables read only, so that they can’t be modified after the initial submission through the service catalog interface. Another common [...]

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 [...]