-
Retrieving Files from the MID Server with a ServiceNow Subflow
Powershell Script Custom Action – ECC Queue Request Script Include in Scoped Application for GlideSysAttachment.writeBase64 We need to use the writeBase64 method of the GlideSysAttachment class, however this only works in a scoped application. Every other artifact has been created in a global app, so we need to either create a scoped app for this…
-
Field Encryption Modules not visible after installing Column Level Encryption
After installing the Column Level Encryption plugin (com.glide.encryption), the navigation module for Field Encryption Modules is not visible. This is because this module is only visible to sn_kmf.cryptographic_manager and sn_kmf.cryptographic_auditor roles, and though they are included in the sn_kmf.admin role, the sn_kmf.admin role requires elevation. To resolve this:
-
ServiceNow HRSD COE Security Policy Audit Functionality
It’s a good idea to have regular audits/reviews of COE security policies and HR groups to ensure that the permissions are setup as intended. This custom functionality provides a mechanism of performing audits/reviews with an HR case. The basic idea of this functionality is Here’s how to set it up: HR Service Create an HR…
-
ServiceNow javascript indexOf not working for an array
I was trying to get all of the unique sys_id’s of groups that were included in HRSD COE Security Policies using the below query However, this was not producing unique results, the same sys_ids were being added repeatedly to the array. After some googling I realized that this was due to a problem with the…
-
Syncing Sibling Records in a ServiceNow List Field
When you have sibling records, i.e. records that are somehow related to each other but that don’t have a parent, one way to relate them is with a list field. The below script can be put into a business rule on the table, triggered to run when the list field changes. This script goes to…
-
ServiceNow Dynamic Annotations – Using Javascript in Annotations
I have an html annotation in a form with a link that gets updated yearly. I was looking for a way to dynamically generate the link so that I wouldn’t have to remember (i.e. to be reminded) to update it on Jan 2nd and found this question in the community https://www.servicenow.com/community/now-platform-forum/dynamic-url-in-annotation-on-a-form/m-p/1263468 In this question, howard8…
-
Building a .jar file to run on the ServiceNow MID Server
John Andersen has a great video on running a jar file from the ServiceNow MID server. The below are my notes from following John’s video to do this myself. It includes steps for setting up the Java development environment. 14. Confirm the properties by pressing Enter 15. You should see Build Success if all goes…
-
Inline list editing on the HR Lifecycle Events Case table in ServiceNow HRSD – Security prevents writing to this field
Out of the box, users with the sn_hr_le.case_writer role are unable to do inline list editing for cases in the HR Lifecycle Events Case sn_hr_le_case table. They get the message “Security prevents writing to this field”. On the other hand, they can do list editing for any other case extended from the HR Case table…
-
ServiceNow HRSD: Yearly Scheduled HR Case Creation
Scheduling the creation of HR cases from an HR Template is a great way to keep track of recurring work. If you need to create a case once a year, you can use the syntax below in the script field of the Scheduled Entity Generation form. Note that GlideDateTime().getMonth() will not work in scoped applications!
-
ServiceNow HRSD: Updating HR Tasks or HR Cases with Employee Forms
A common requirement in HRSD is to have an Employee Form (Collect Employee Input HR Task) update the HR Task it is associated with or even the HR Case that the HR Task is related to. While you can add mappings to fields from the Employee Form fields, these mappings basically only work for HR…