Scripting

/Scripting

Change Management Workflow Approval Scripts in ServiceNow

By | October 20th, 2010|Categories: Graphical workflow, Scripting|Tags: , , |

Service-now.com provides a really cool Graphical Workflow engine to help manage workflows for different tasks. This graphical workflow engine is particularly useful when working with approvals for Change Requests. As a ServiceNow consultant I’ve found that change approvals usually fall into just a few different types but new administrators and consultants sometimes don’t know the best [...]

Parse URL Parameters in a Client Script

By | October 14th, 2010|Categories: Client scripts|Tags: , , |

Here’s a useful script I’ve used before to grab parameters from a URL in Service-now.com. Simply pass the name of the parameter into the function and it will return the corresponding parameter value. So if you had a Service-now.com URL that looked like this… https://demo.service-now.com/incident.do?sys_id=-1&sysparm_query=active=true&sys_myparm=abcde You could get the value of the ‘sys_myparm’ URL parameter by [...]

Changing the Active Tab Selection in Service-now.com

By | September 29th, 2010|Categories: Client scripts|Tags: , , , |

Service-now.com has a nice tabbed form interface that allows users to save some screen real estate by collapsing all form sections and related lists and presenting them in a tabbed format. Tabbed forms are explained on the Service-now wiki. This post explains how you can use client scripting to change the active tab selection in a [...]

Hide ‘Search Knowledge’ or ‘Suggestion’ Icon in ServiceNow

By | September 17th, 2010|Categories: Client scripts|Tags: , |

Just a quick post today about something that I end up dealing with on most deployments. The requirement often comes to me as this… How do I hide this form icon for some users but not others? This request can apply to different types of icons, but is often asked about the ‘Search Knowledge’ (KB Search) [...]

Returning Random Records Using GlideRecord

By | September 2nd, 2010|Categories: Scripting|Tags: |

I had a request from a client recently to generate a random list of records from a given table (specifically the Configuration Item table). These items would be used as a pool of records for a random audit of the records in that table. I don’t think this will be used all that often but I [...]