ServiceNow Key Concepts and Explanations
1. How Access Control Works in ServiceNow
Access Control rules (ACLs) determine what data users can access in tables and records.
Each rule specifies:
- Table or Field it applies to
- Operation: read, write, create, or delete
- Condition, Script, or Role requirement to allow or deny access
Evaluation order: Most specific to least specific (record -> [Link] -> table)
2. Different Types of Scripts in ServiceNow
Client-side:
- Client Script
- UI Policy
- UI Script
Server-side:
- Business Rule
- Script Include
- Scheduled Job
- Workflow/Flow Designer Scripts
Integration:
- Scripted REST APIs
- Inbound Email Scripts
- Outbound Web Service Scripts
3. Best Practices for Writing Scripts
- Avoid hardcoding values
- Use Script Includes for reusable logic
- Keep client-side scripting minimal
- Use GlideRecord queries efficiently
- Add error handling
- Comment and document your code
- Test in sub-production environments
- Use appropriate APIs
4. Handling Performance Issues
- Avoid nested and unfiltered GlideRecord queries
- Use setLimit() to restrict results
- Minimize synchronous client calls
- Enable indexing on frequently queried fields
- Use asynchronous processing
- Review logs and performance dashboards
5. What is an Import Set
A staging table to temporarily hold external data before moving it into ServiceNow tables.
6. What is a Transform Map
Defines how records in an Import Set map to fields in a target table.
7. Scoped Applications Concept
Self-contained modules with isolated tables, scripts, and logic, preventing interference with other
applications.
8. How to Customize Forms
- Use Form Designer
- Configure related lists
- Use UI Policies and Client Scripts
- Adjust sectioning and field properties
9. What is a Dictionary Override
Modifies field-level settings for a field at the child table level without changing the parent table
definition.
10. How Does Version Control Work
- Use Update Sets to capture changes
- Scoped Apps can be versioned using Application Repository
- Source Control integration available for Scoped Apps
11. Inbound and Outbound Email Actions
Inbound: Process incoming emails (e.g., create records)
Outbound: Send notifications triggered by rules or events
12. Debugging Scripts
- Use [Link]() for server-side
- Use g_form.addInfoMessage() or [Link]() for client-side
- Use Script Debugger and check system logs
13. Creating a New User
- Go to User Administration -> Users
- Click New, enter details, assign roles, and save