Tips and Tricks: A Captivating Experience...
The following little snippet of JavaScript uses the replace() method on a string, but in a way you may not be familiar with. What do you think this script will log if you run it?var x = "This is a tes...
The following little snippet of JavaScript uses the replace() method on a string, but in a way you may not be familiar with. What do you think this script will log if you run it?var x = "This is a tes...
Consider the following code snippet. What do you think it will log (assuming that the query succeeded)?var gr = new GlideRecord('core_company');gr.addQuery('name', 'Lenovo');gr.query();if (gr.next()) ...
Earlier this month I visited a customer in Phoenix, Arizona. I rented a little red car with a black interior, and made the mistake of leaving the windows rolled up tightly. During the day the temperat...
Service-now.com is growing, including our team of Discovery, Runbook Automation, and CMDB developers. If you (or someone you know) are an insanely great Java and JavaScript developer, know your way ar...
Sometimes when you're writing a script, you need to query one table but get results based on fields in another, related table. For example, you might want to query for NICs on Windows servers. The NIC...
I'm curious how many customers are at a stage with their implementation where they are able to create dashboards that summarize the health of their business services and infrastructure. Essentially th...
Hi everyone,For those administrators whose instances are in the London datacenter, the SSL certificate expires on July 11, 2010. Information on the change is available here:http://wiki.service-now.com...
If you are a Discovery customer interested in writing your own custom Windows probes and sensors, the first step you want to do is often identify the information you're going after. As powerful as the...
Hi everyone,In conjunction with Mark O'Donnell, our Content Management guru, we've rewritten the Content Management documentation to make the plugin easier to use. Particularly, we focused on writing ...
Hi everyone,As always, we're looking to improve our documentation not only in terms of its content, but in terms of the Wiki itself and the structure of the documentation. Today we're rolling out a ne...
Hi everyone,A couple weeks ago we got the Spring 2010 release notes out the door. It was a pretty big release: four big new applications (Field Service, Service Portfolio, Project, and Cost management...
Hi everyone,I've started this blog to help keep everyone informed about new articles and topics in documentation, so that you'll know when more information is available for topics. I may also use this...
We've recently revamped the way Discovery works largely due to the DHCP issue at a lot of customers' environments. Well, we've named the new way "Scan CI", which basically gathers enough information f...
Perhaps you've already heard about the new Discovery feature called "CI Scan". What's it all about? Why do we think it's a big deal?If those questions have been keeping you awake at night, then you ne...
A few weeks ago I was talking with one of our customers (I'll call him Joe) who had just finished writing a script that created a little report of how many items of each type were in his CMDB. Joe was...
A string is a string, right? Ah, if only 'twas so!JavaScript all by itself has two different kinds of strings: there's the primitive "string" (with a lower case 's') and then there's the "String" clas...
In JavaScript, "undefined" means two distinctly different things:A property that doesn't exist.A property that has the "undefined" value assigned to it.Huh? Aren't those two ways of saying the same th...
Several customers have asked me about the odd-looking "Packages..." invocations they see sometimes in server-side JavaScript (like business rules or script includes). For instance, you might find a pi...
In a conversation I had with a customer the other day, she asked me why she saw so many examples of business rules written in functions, like this:doImportantStuff();function doImportantStuff() { var ...
Did you know that your Service-now instance comes complete with a handy-dandy set of commonly used JavaScript utility methods? These are in a script include named "JSUtil", and you can easily use its ...