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 No 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…»

Master Data Upload via Catalog Item

General No Comments »
by:

Do you want to perform Master Data uploads via a Catalog Item?
Continue reading…»

Prevent data retrieval from growing linear for each result

General No Comments »
by:

There are many ServiceNow customers and they all have their own specific demands. Some of them can be fulfilled by customizations using UI actions, but some of them require a fully customized page.
For this ServiceNow has provided a few methods, one of which is a UI page. As the demands often tend to be quite specific, GlideAjax and Script Includes can be used to retrieve and store data following those specific demands.
Continue reading…»

ServiceNow licensing: 7 things to keep in mind…

General No Comments »
by:

ServiceNow is still one of the (if not THE) fastest growing software companies out there; really a phenomenal success!
And over the years the platform functionality and pricing changed of course – nothing you wouldn’t expect when dealing with a multinational company that is listed on the stock exchange (NYSE: NOW).
Continue reading…»

Enhance your forms with icons using addDecoration!

General No Comments »
by:


Do you have forms with many mandatory fields? Are your users complaining they can’t save their record after filling just one mandatory field? Then worry no more and addDecorations!
Continue reading…»

Importing record producers and variables

General No Comments »
by:

At our Facilities Management application, we had to create some record producers, a good amount of them, some with the same groups of basic questions (Who?, When?, Where?), but lots of different specific questions.
We can create the record producers, variable sets and variables manually, but it would take a lot of time to do so.
Continue reading…»

Automated testing to improve software quality

General No Comments »
by:

Automated testing is becoming more and more important. There are no human errors, it is easy to perform repetitive tests, it saves time and money and you will see the test results immediately so you can act on errors before the end-user will even notice! Manually testing to find defects or bugs is very time consuming, so why not help the testers? Why not automate the tests that take a lot of time when you test it manually or when you get easily human errors in the test? A quick check in your results will show every possible defect after a change or an upgrade. Test automation will improve the software quality and stability!
Continue reading…»

The nuts and bolts of JavaScript

General 1 Comment »
by:

Today we will look into a problem that many a Servicenow consultant has lost some hours on solving. To prevent new consultants running into this problem, but also for the ones that solved it but didn’t fully comprehend the solution, here is a detailed explanation of what is going on in the nuts and bolts of JavaScript.
Continue reading…»