Run Scheduled job from script

Hello ServiceNow Geeks, In this article, I will cover a very important and interesting topic in ServiceNow. It is about on demand execution of scheduled job from script in workflow run script activity or any business rule, or any other scripting flow. As you are aware Scheduled Job helps in automating a repetitive task, which in return removes the dependency of manual intervention to run script in ServiceNow. Scheduled job…

View More Run Scheduled job from script

Convert table records to excel using background script

Hello ServiceNow Geeks, This article is specifically prepared for you to provide you a script to covert table records to excel sheet using background script in ServiceNow. Here is the code for same requirement- I hope this will help you in fulfilling your requirement too. Please do comment your requirement and script which may help other developers of our ServiceNow community. Do share your this article and let us know…

View More Convert table records to excel using background script

Date Validation in ServiceNow

Hello ServiceNow Geeks, In this article, I will be covering the concept of date/time filed validation in ServiceNow. I will take a practical example of past and future date validation in ServiceNow. At the end of this article, you will be able to solve practical questions like- how to restrict date field in ServiceNow, how to restrict past date in ServiceNow, date should not be past date, and date format…

View More Date Validation in ServiceNow

Incident vs Problem Management – ServiceNow

Hello ServiceNow Geeks, In this article, we will cover minute differences between incident and problem management in IT Service Management. Let us know dig more into the incident and major incident. Both of them play a vital role in IT service management. As we already mentioned, Incident is handled by Service desk agent which has ITIL role and so auto-closure is applicable in this kind of record. However, major incident…

View More Incident vs Problem Management – ServiceNow

orderBy() vs orderByDesc() – ServiceNow

Both orderBy() and orderByDesc() are used to sort out query results before iterating and using the returned data using next() function in ServiceNow. Usage of orderBy() and orderByDesc() method Both of them accept single argument That argument would be the back-end name or dictionary name of the table column to be used. For Example, take an example of “Created on” field on change request table. Dictionary column name of this…

View More orderBy() vs orderByDesc() – ServiceNow

Format table in Notification Email Script – ServiceNow

Hello ServiceNow Geeks, Today we will cover another interesting feature we can easily develop in ServiceNow, i.e., Notification Email Scripts. In that we will look into a code to format table using notification email script in ServiceNow. In the below code, we are formatting a table for details captured in import set row table. Columns are target record, state, transform map name and comment for import so done. template.print() function…

View More Format table in Notification Email Script – ServiceNow

Remove “Number of rows removed from this list by security constraint” in ServiceNow

Hello ServiceNow geeks, Well most of us have used ACL and query business to restrict data operation for certain set of users. You must also have seen annoying message while restricting the access using ACL in ServiceNow. That message is – Number of rows removed from this list by Security constraints: {count} This is the out of box behavior of ServiceNow ACLs but we can get rid of this. There…

View More Remove “Number of rows removed from this list by security constraint” in ServiceNow

Penetration Testing (PEN test) in ServiceNow

In this article, I will cover security aspects which you must consider in mind before going for penetration testing in your ServiceNow instance and scope of penetration testing in ServiceNow. Let us start with Major security aspects in PEN test from ServiceNow perspective You should consider following points:- Malicious String/Script is passed for string fields via APIs , then it needs to be replaced/removed, which are “<”,”>” , “&lt;/script&gt;” tags…

View More Penetration Testing (PEN test) in ServiceNow