This is a guest post by colleague – enjoy! It’s difficult to set up a reference field to be dependent on another field if that reference doesn’t exist in the dictionary. An example of this is using Reference field variables in Wizards in ServiceNow. Servicenow does not offer the option to make one field dependent …
Continue reading Guest Post: Using a Reference Qualifier when the Dependent dictionary field is not availableJavaScript
On a recent project I needed to set the value of some fields on a form, the values needed to be based on the the values set in a parent record, in fact the parents, parent record! This is to help users and speed up record creation time. I achieved this by using a client …
Continue reading Auto populate a field in ServiceNowRecently I worked on a project that required two date / time fields to be blanked on load of a new form. To do this I used a client script with the “onLoad” type selected, see my code below for how this was simply achieved: 1234567function onLoad() { if (g_form.getValue(‘number’) == ”) { g_form.setValue(‘start_date’, ”); …
Continue reading Blank a field with a client script in ServiceNowI recently created a table and added most of the fields I needed but did not extend the table from the task as planned. In short I needed to extend an existing table, I used the following background script to achieve this: 12var extnd = new Packages.com.glide.db.table.TableParentChange("newtable"); extnd.change("sys_import_set_row", "task"); Note you need to elevate your …
Continue reading Promoting a table to a new parentSometimes certain records are not stored in update sets- anyone who has moved changes from a development environment to production will know things like groups and schedules are not saved to update sets! There is a way to make this happen though, all you need is the sys_id of the record you would like to …
Continue reading Manually add data to an update setThe requirement My first project as a ServiceNow developer was to implement a solution that would allow admins to send a welcome email to users that informs them how to log into the instance, what their username is and what groups they are a part of. This will save valuable time for admins and hopefully …
Continue reading Project: Setting up a welcome email in ServiceNowWelcome to service now later!
Continue reading Hi