ServiceNow is a cloud-based digital platform that used by organizations to automate, manage, and improve businesses processes, especially in IT Service Management (ITSM).
A User in servicenow is anyone who can log into the platform or who can access servicenow platform.
1 Admin – Admin is a developer who is responsible for development.
2 End User – A user who only uses application without any role assigned. He can raise the ticket/issue/request.
3 ITIL user – fulfil the requst of end user.
4 Maint user – Maint user is like a super admin.
This user has access to acivate paid plugins.
There are mainly four types of table in ServiceNow.
Dictionary Override will come into a picture when we have a parent-child relationship between tables. By default, all fields and their attributes are inherited from parent table to child tables. Suppose you want to make a difference in one of the child tables for inherited fields then we will go for Dictionary override.
[Dictionary Override to allow a field in a child table to have a different behavior than the same field in a parent table].
We can override following properties: –
All -> Create new -> Open -> Assigned to me
Which mean what you see depends upon what role you have.
Update set is a component which is used to capture configurational changes and can be moved from one instance to another instance. We have update_sync property at table level. If it’s true, then the system will consider this table as a “configuration table”. So, whatever we are creating or updating records in that table will get captured into update sets.
Client script is a script that runs on client side (that is in users’ browser). Using Client script, we can change the look and feel of the form. Client Script is used to perform validations on forms.
There are four types of Client script: –
There are some parameters in onChange Script: control, oldValue, newValue, isLoading, isTemplate
There are some parameters in onCellEdit Script: sysIDs, table, oldValues, newValue, callback
Normally when we are loading a form or new incident first the html structure will get loaded without values it means we don’t have any values on the form it is empty after that we will get the values from the database, and it will populate on the form. So, in this scenario values are getting change from empty values to database values. So, in this way, changing client script will run.
function onChange(control, oldValue, newValue, isLoading, isTemplate)
{
if (isLoading || newValue === ”)
{
return false; //when isLoading is false, the onChange script will not run on form load.
}
}
So, if isLoading is false that time onChange Client script will not load onLoad
.
UI policy
Client script
A List Layout is the default configuration of columns and their order that users see when they open a list view for a specific table (like Incident, Change Request, etc.) in ServiceNow.
It’s essentially a global setting controlled by admins that defines:
Feature | List Layout | Personalized List |
Affects | All users | Individual user |
Requires admin role | ✅ Yes | ❌ No |
Used for | Setting default list columns and order | User-specific adjustments |
Changes saved | In the system list configuration | In user preferences |
A Business rule is a server-side component that runs on the server side. It runs when a record is Displayed, Inserted, Updated, Deleted, or Quired.
There are four types:
Query Business Rule is a type of server-side script that executes before a database query retrieves records from a table.
Callback function is a JavaScript function passed as an argument to another function, enabling asynchronous operations within client scripts.
Return value of getReference() is the full GlideRecord object representing the referenced record that the reference field points to.
GlideRecord is a ServiceNow server-side API used to fetch the record from a table.
GlideRecord lets you read, insert, update, and delete records from a table.
GlideRecordSecure is an extended functionality of GlideRecord that automatically enforces ACLs, where GlideRecord requires additional methods to call to validate access.
No, ServiceNow is based on an older JavaScript engine. That is ES5. ‘let’ and ‘const’ are the newest JavaScript versions
Whenever you want to load data from any external sources into ServiceNow, then Import Set and Transform Map come into the picture
The Import set is a powerful tool used to import Temporary data from external applications and then map that data into the ServiceNow table for Temporary Purpose.
Transform map is responsible for determining the relationship between the fields of import set table and service-now table. During transformation, data is copied from the Import Set table to the destination table using a transform map.
Coalesce is a property of field mapping, which will decide parameters for inserting a new record or updating the existing record in the target table. The coalesce is set on the field or multiple fields which will be considered a unique key in the target table. If a match is found, the existing record will be updated. If a match is not found, then a new record is inserted into the target table.
In Load Data Transfer seven types of scripting is present they are as follows:
onStart: Executes at the beginning of the transformation process.
onBefore: Executes before each record is inserted or updated.
onAfter: Executes after each record is inserted or updated.
onComplete: Executes at the end of the transformation process.
onForeignInsert: Executes when a related record is inserted.
onReject: Executes when a record is rejected during the transformation.
onChoiceCreate: Executes when a choice value needs to be created during the transformation.
Retroactive pause is used to consider the pause SLA time in new SLA.
Allow If – If you have 100 ACLs and if 1 ACL is meeting all the conditions, you can access the record.
Deny Unless – If you have 100 Deny unless ACLs and one Deny Unless ACL does not meet all the conditions, then the access will be denied.
Deny Unless needs to satisfy all the conditions (the role, condition, and script requirements) of ACL.