Title
Excerpt
Created
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
1. Create a subflow that will be called from a UI Action 2. The subflow input will be an case record. 3. The first step is a Create Record action. Table = HR Task. HR Task Type = Collect Employee Input. Ensure the Wait checkbox is ticked. 4. The second step is a Look Up…
Client script for record producers displayed in the backend UI action to call the record producer Client script for record producers displayed in the portal
If you paste images into the body of an html email notification, the source of the image is the record in sys_attachment. If the user doesn’t have access to the attachment (i.e. to the underlying record), they won’t see the image in their email. One option is to put the image in the db_image table,…
Sometimes databases don’t store their dates in UTC. I recently ran across a system that stored all their dates in Eastern time, or at least, that’s what time zone they were in when they came out of the API (because the world revolves around Eastern!). In ServiceNow, dates are stored in UTC, so when writing…
I recently had a requirement where the employee would provide a bulleted list along with a couple of paragraphs of text in an HRSD case. My initial thought was to use an Employee Form (Collect Employee Input) for this, however I quickly discovered that Employee Forms don’t have an HTML field. I came up with…