0% found this document useful (0 votes)
10 views

Scripting Use Cases

The document outlines various tasks related to ServiceNow scripting, including creating business rules, client scripts, and scheduled jobs. It covers advanced Glide Record queries, UI policies, script includes, and REST APIs for integrating and automating processes. Each section provides specific examples and best practices for implementing these tasks effectively.

Uploaded by

tia641246
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Scripting Use Cases

The document outlines various tasks related to ServiceNow scripting, including creating business rules, client scripts, and scheduled jobs. It covers advanced Glide Record queries, UI policies, script includes, and REST APIs for integrating and automating processes. Each section provides specific examples and best practices for implementing these tasks effectively.

Uploaded by

tia641246
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Use Tasks:

Cases
:
1 ServiceNow - Introduction to - ServiceNow Create a basic business rule Whenever work notes activities is updated, update short description of incident table with
Scripting ServiceNow Scripting to automate a repetitive the user id details.
Basics scripting Overview Guide task in ServiceNow.

- Glide Record and - ServiceNow - Implement a client Script Validate form where you need to check whether user id exists or not or whether a user is
Glide System API Glide Record API to validate and enhance having a valid email domain or not.
Documentation form input.

- Business Rules and - ServiceNow - Use Glide System Create a Catalogue item where request for will be auto populated with the logged in user
Client Scripts Business Rules functions in a client Script id.
and Client Scripts for dynamic behaviour.
Documentation
2 Advanced - Complex queries - Advanced Glide - Create a script to fetch Display a list of incidents as per logged in user's location with incident location.
Glide Record using Glide Record Record and display related records
Queries Techniques in using Glide Record.
ServiceNow
- Querying across - Glide - Implement a Glide Write a script to get the list of active incident records which are assigned to currently
multiple tables Aggregate API in Aggregate script to logged in users and get them in priority list view.
ServiceNow calculate aggregate values.

- Best practices for - Optimize a complex Glide Try to use error handling try/catch block and scripting best practices to optimize the
efficient querying Record query for better performance.
performance.
2 UI Policies and - Implementing UI - ServiceNow UI - Use UI Policies to enforce Whenever caller id is ''Newton Sacs '', make assignment group as mandatory, but it should
Client Scripts Policies Policies mandatory fields based on not be valid for other users.
Documentation conditions.

- Creating dynamic - ServiceNow - Implement a dynamic Take input from user and update a custom field name as "name".
UI using Client Client Scripting form that updates based on
Scripts Guide user input.
- Field - Create a Client Script to Auto populate - email, assignment group, company with respect to caller id on an incident
Dependencies and dynamically populate field table.
Dynamic UI options.

3 Script Includes - Introduction to - ServiceNow - Implement a Script Include Make 4 utility in a script include function [sum, difference, multiply, divide ] and call them
and Server- Script Includes Script Includes for common utility anywhere and showcase the output
Side Scripting Documentation functions.

- Server-side - Writing Efficient - Use server-side scripting


scripting best Server-Side to automate a backend
practices Scripts in process.
ServiceNow
- Utilizing Script - Implement a Script Include Create a utility Script Include containing 4 functions to create, update, read and delete
Includes for reusable for database-related records on any table which is passed as an argument from the user dynamically. And the
code functions. queries will also be passed as a parameter dynamically.
3 Scheduled Jobs - Creating and - ServiceNow - Schedule a job to update Create a schedule job calling 4 functions to create, update, read and delete records on any
and scheduling Scheduled Jobs records on a regular basis. table which is passed as an argument from the user dynamically. And the queries will also
Background background jobs Documentation be passed as a parameter dynamically.
Scripts

- Background scripts - Best Practices - Implement a background Delete record query


for batch processing for Background script for data cleanup.
Scripts in
ServiceNow
- Error handling in - Add error handling to a
scheduled jobs scheduled job for better
reliability.
4 REST APIs and - Overview of REST - ServiceNow - Create a REST API to
Scripted REST in ServiceNow REST API expose ServiceNow data to
APIs Documentation external systems.
- Creating and - Building - Consume a third-party API
consuming REST Scripted REST and update ServiceNow
APIs APIs in records.
ServiceNow
- Securing and - Implement authentication
authenticating REST mechanisms for REST APIs.
requests
5 REST Inbound Rest https://developer.servicenow.com/dev.do#!/learn/courses/vancouver#rest-
Integrations Integrations integrations
Outbound Rest https://developer.servicenow.com/dev.do#!/learn/courses/vancouver#rest-
Integrations integrations
Scripted Rest https://developer.servicenow.com/dev.do#!/learn/courses/vancouver#rest-
APIs integrations
REST in https://developer.servicenow.com/dev.do#!/learn/courses/vancouver#rest-
Integration integrations
Hub
Data Stream https://developer.servicenow.com/dev.do#!/learn/courses/vancouver#rest-
Actions integrations

You might also like