Title
Excerpt
Created
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…
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…
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…
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…
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…
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…
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!
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…
This solution allows the admin to create rules with conditions that are run against HRSD Cases. When a case meets the conditions of a a rule, an HR Data Quality Issue is generated. HR Data Quality Rule Table HR Data Quality Issue Table (M2M table) UI Action – Run Data Quality Checks This UI Action…
Some environments require that data that is privacy-related or contains PII be catalogued such that we know what is stored, where it is stored and why it is stored. This article outlines functionality built for HRSD which produces a report of privacy related fields for each HR Service. The end result is an html “report”…
In a the Taxonomy Topic form , you can add Connected Categories for Knowledge. Doing this should add new articles to the Connected Content for the give Topic, but it doesn’t. There is a related link Check for new content in categories, but this link doesn’t add the new articles either. The only way I…
Checklists defined in the HR Service Configuration get added to cases when the case is created. However, sometimes checklists are created after their are cases already in flight. The below script will add a checklist from an HR Service to an HR case if it does not already have one:
This documentation page states that The toXMLDoc() method returns JSON provided as XML elements. however the page does not provide any examples or syntax reference. I tried my darnedest to get it working but was unsuccessful. Here’s what I tried Under the hood, the method in the XMLHelper script include looks like this: While there is some…
A ServiceNow Federal Tech talk highlighting some of the HRSD integration with USA Staffing
If you used the Checklists plugin in ServiceNow you know that it very annoyingly writes a work note every time an item is checked or unchecked. This video explains how to turn this off. In this article, I’ll explain how to write to a custom field instead of a work note, which not only avoids…
If you want to get the reference table for a ServiceNow list field, perhaps to reformat the data, the below functions usually work: However sometimes getElement doesn’t work as was the case recently for me in a client callable scoped script include. In this situation, I had to rig up my own function, which looked…
If getElement is not working for you, you can create your own function, see this post
You can easily change the From address in an ServiceNow Email Client Template but changing the Reply to is less obvious. The answer is buried deep down in this question in the community. In the Email Client Template record, add the Reply to field under the Sender Configuration tab (why this field is not on…
To filter a ServiceNow catalog variable based on the values of other variables on the form, use the following syntax