-
ServiceNow Checklists: Using a checklist field instead of writing to work notes
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…
-
Getting the Reference Table for a ServiceNow list field (glide_list)
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…
-
Returning a ServiceNow List Field with Line Breaks Instead of Commas
If getElement is not working for you, you can create your own function, see this post
-
Changing the Reply To in a ServiceNow Email Client Template
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…
-
ServiceNow Catalog Variable Reference Qualifier Using Values from Other Variables
To filter a ServiceNow catalog variable based on the values of other variables on the form, use the following syntax
-
ServiceNow Employee Form Update Case
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…
-
ServiceNow Record Producer Client Scripts Populate Variables from URL parameters
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
-
Inline images in outbound html emails
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,…
-
Set a GlideDateTime to a Local Time According to a Specific TimeZone
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…
-
ServiceNow HRSD: solution for no HTML field in Employee Forms
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…