In my last two posts we've reviewed Coding Best Practices as well as Client Script Best Practices in ServiceNow. Now I'd like to review some of the Best Practice tips for writing successful Server-side scripts. The ServiceNow platform is extremely fl...
In my previous post on Coding Best Practices, we reviewed some Best Practice tips for scripting in general. The ServiceNow platform allows Administrators to enhance the standard functionality by adding scripting to various system components. These co...
As a ServiceNow Technical Architect, I often need to write code to perform complex functionality within the platform that cannot be achieved through the available configuration methods. In addition to this, I also see a lot of code written by other A...
In an earlier post, I shared my advice on using client-server communications in ServiceNow in order to improve IT Service Desk efficiency. To recap, I focused on the fact that there are various options available for handling communications between t...
GlideAjax is one of the most versatile scripting tools available to ServiceNow Administrators and Developers. It provides a way for the Client to silently communicate with the Server, and in doing so either update or retrieve information from the Ser...
I'm glad you got your solution working!
For reference, you've opted to leverage ServiceNow's capability to apply field values to a record form via URL parameters. In my experience, this works for simple field values (reference fields/sys_id's, choice...
If you want to create a new Incident from RITM using a UI Action, I suggest something like the following. Note that the script works in 2 steps. The first is to create the Incident record object and map the values. The second is to redirect the user ...
As posted above, you can access the variable values by using the .variables property on the RITM GlideRecord Object. If the variable is a Reference or Choice type you can also use .getDisplayValue() to return the display value instead of the stored v...
Hi Kushal,
If you're after details such as the date when Stage changed, or duration between Stage changes, you could achieve this by using Metric Definitions. There are some OOTB (out of the box) examples of Metric Definitions based on State duration...
Hi Ashi,
If you want to automate the linking of Incident to Knowledge Article, ServiceNow will need to know how to find the correct Knowledge Article (KBA). In your example, you've shown selecting a specific KBA from the list in the Flow actions. Is ...