Category: Service Portal

Automated Test Framework (ATF): custom Step Configuration

Automated Test Framework: custom Step Configuration Step Configurations allow you to create custom test steps above and beyond what is included with ServiceNow. Step Configurations are server-side meaning you have the full power of server-side scripting at your disposal. We’ll create a Step Configuration that checks if the ‘Incident opened on my behalf’ Notification has been correctly sent after a self-service user has opened an incident. Our test case might be something like this: When a new Incident is created, the ‘Incident opened on my behalf’ Notification should be sent to the user who opened the Incident Create a new ...

New York New York – The release so good they named it twice

What features in New York are you most excited about?

Service Portal: Paste attachments in Service Catalog

When a user needs to add a screenshot to a record (in this example we will use Incident) the process when using baseline widgets would be: Take screenshot Save file Upload saved file as an attachment on the Catalog Item/Record Producer It would be a much better User Experience to be able to take the screenshot, copy it to the clipboard and then paste it directly to the record – you may recognize this functionality if you have ever used the ServiceNow HI portal. This functionality does not exist in the baseline platform but it is fairly easy to add! ...

Y2.02K approaches… Thousands of Knowledge Articles are about to fall into the abyss!

When you create a new Knowledge Article the Valid To field defaults to 01-01-2020. What does this mean? If you or your customers have created Knowledge Articles and left the Valid To field with its default value, those articles will no longer be accessible in six months time. Before we address this impending doom we need to ask: why are you leaving the Valid To date at its default value? Knowledge should be periodically reviewed to ensure it is still accurate and relevant, ideally we should be setting the Valid To field to a date relative to the publishing date, ...

Service Portal: Widgets as Catalog Variables | Part 1

When displaying Catalog Items through the Service Portal it is possible to include custom Service Portal Widgets as Variables on the item, these can then be used to control other Variables on the item, allowing us limitless flexibility on the design and functionality of our Catalog Items. Let’s take a simple Catalog Item with a Select Box variable and a Yes/No variable and replace them with custom Widgets Create the Catalog Item Go to Service Catalog > Maintain Items Click New Complete the form: Name: Add to DL Catalog: Service Catalog Category: How can we help Short Description: Add to ...

Service Portal: Server update methods

Within our Service Portal widgets there are two main ways we can send data from the client to the server, these are Method Description this.server.get([Object]) Calls the server and sends custom input. Returns Promise.   this.server.update() Calls the server and posts this.data to the server script. Returns Promise.   It’s important to understand the difference between these two methods and when to use them. As an example we’re going to create a simple widget that will display unassigned incidents and allow a user to assign an incident to themselves or to one of their groups. The code for the initial ...

StarshipNow application

What is StarshipNow StarshipNow is a scoped application that I use to demo ServiceNow functionality. In general, it allows you to manage the functionality of a fictional starship and its crew members among other things How do I install StarshipNow? You can install StarshipNow through GitHub or Update Sets. Install StarshipNow through GitHub Go to https://github.com/SNPresentNow/StarshipNow and fork the repository In your instance, go to System Applications > Studio Click Import from Source Control Install StarshipNow with Update Sets

Service Portal: Syntax Editor Macros

Syntax Editor Macros… One of those things that you don’t realize you miss until they’re gone. And unfortunately in the Service Portal Widget Editor there is currently no support for them, so I created a small script to enable Syntax Editor Macros in the Service Portal Widget Editor. (function(){ //object to store macros in var macrosObj={ }; //add keyup event listener jQuery(window).on('keyup', function(e) { var keyCode = e.keyCode || e.which; //check if key pressed is TAB if (keyCode == 9) { //get DOM element for active pane var cmEl = jQuery(document.activeElement).parents('.CodeMirror')[0]; //get CodeMirror object for active pane. CodeMirror is the ...