Migrating knowledge articles from one ServiceNow instance to another

General No Comments »
by:

Sounds like a simple export and import XML right?
That’s what I thought too… until we saw that the Knowledge state circles in the list view of kb_knowledge no longer showed the usual green for each completed stage for each migrated article (see screenshots below). Continue reading…»

TOTP (Time based One Time Password)

General No Comments »
by:


Make use of one-time passwords for several two-factor authentication systems.
Continue reading…»

The getRefRecord dilemma

General No Comments »
by:


The getRefRecord functionality in ServiceNow is a function that gets a GlideRecord object for a given reference element. But what does it actually do and how should it be used in Istanbul and higher?
Continue reading…»

Current in Advanced Reference Qualifiers

General No Comments »
by:


The “Current” object in the context of Reference Qualifiers is an interesting object that can assist in delivering the filter you are looking for in a Reference Qualifier. This article describes how to work with this object.
Continue reading…»

Capture the template being used in record chosen from the template bar

General No Comments »
by:


Every now and then we get a customer question if it is possible to report on the use of templates. Usage like the number of times templates are used and by whom.
Continue reading…»

Knock, knock who is there?

General No Comments »
by:


In ServiceNow out of the box it is possible to restrict access to the instance based on IP address. When access is revoked the following page is visible below.
Continue reading…»

How to ‘Show XML’ – the not so annoying way

General 5 Comments »
by:

The one thing that possibly annoys me the most on Servicenow is the fact that the ‘Show XML’ pop-up is automatically closed when it is no longer in focus. Actually, I am not sure when the window is closed because two hours of investigating on how Servicenow accomplishes this behaviour yielded no results. Chrome developer tools do not show any event listeners on this, window, document, body or any other element for that matter. Especially while developing you might want to keep the XML open to go back and forth between the record (and all data that might not be shown on the form itself) and what other page or program you have open. The first idea that comes to mind is editing the UI Action itself. But it comes as no surprise that there actually is no UI Action called ‘Show XML’ and inspecting the link from the context menu on the form shows that the href property for the div points to ‘xmlView(table, sysId)’. And in true Servicenow fashion, this is undocumented and inaccessible for editing.
Continue reading…»

Organizing (a lot of) code with a controller pattern

General No Comments »
by:

ServiceNow does a lot of things right. It allows for a great deal of extending and customizing, and compared to most other SaaS solutions I see in practice it does so very well. You write your custom logic, save it as a Script Include and use Business Rules, UI Actions and Scheduled Jobs to invoke your code. For most use cases the Script Include itself is enough to organize your code. But when the amount of functions needed becomes larger, there comes a point when one Script Include is just not enough too properly organize your code. Scrolling through 1500 lines of code is a pain even when it is properly formatted and well written.
Continue reading…»

LDAPS via MID Server

General No Comments »
by:

LDAP is a good way to have your user provisioning in ServiceNow. This helps you to maintain user data in one source where it can be accessed by multiple applications. To transfer the user data securely, ServiceNow supports LDAP via the MID Server. LDAPS is also supported if it is directly into the customers’ network.
However, this is not preferred by most customers. They do not want ServiceNow to enter the customer network directly and this is most of the time not even possible. So, they want ServiceNow to do all communication to the customers’ environment via the MID Server because this is secure. However, this does not count for the internal communication. If LDAP is used via the MID Server, an employee who is already in the customers’ network, the data transferred between the LDAP server and the MID Server is not secure. Therefore, a lot of customers want Servicenow to perform LDAPS via the MID Server. Since this is not supported by Service Now I will explain how this can be done.
Continue reading…»

Creating a pop-up using a GlideDialogWindow

General 3 Comments »
by:
I recently had to create a pop-up window with a reference field where one could select a user to redirect an approval to. A Glide Dialog Window seemed to be the best option to me.
An approver had to be able to open the window by clicking on the ‘Redirect’ button. This button didn’t exist yet, so I created it.

Continue reading…»