We can write script in different places in ServiceNow. All type of script we can define in 2 category.
-
- Client Side
- Server Side
Client-side
script will run on web browser, usually to a list or form. We can perform many functionality using client side script like doing form validation, making field mandatory, hide and show etc.
Server-side
script will run behind the scenes/ or in backend once a form is submitted or a different trigger occurs. Script runs on the server, we can perform all CRUD operation, we can interact with ServiceNow database.
| Client Side | Server Side |
| Client Script | Business Rule |
| UI Policy | Script Include |
| UI Action | UI Action |
| UI Script | Access Control List(ACL) |
| Validation Script | Schedule Job |
| Script Action | |
| Workflow/Flow Designer | |
| Transform Map | |
| Background Script |


