TechNow Ep 21 | Let's Process the Power of Processors

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2015 04:27 PM
Chuck and Kreg dig deep in to one of the most powerful and flexible features of ServiceNow — processors. Processors provide an end-point (URL) allowing you to format ServiceNow data in almost any way imaginable. You are likely already using processors and not even aware of them. We'll show you some common usage and then demonstrate how to unleash this amazing feature.
Original Air Date : Thursday, August 20, 2015 | 10am PT
Chuck Tomasi is a Sr. Services Enablement Program Manager for ServiceNow. He has been working with the platform as a customer and Technical Consultant since 2008.
Kreg Steppe is an Automation Consultant for ServiceNow and is based in Rock Hill, South Carolina.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2024 03:02 AM
Sure, let's dive into the topic of Processors in ServiceNow:
- Processors in ServiceNow are scripts that provide a customizable endpoint URL, allowing you to format ServiceNow data in almost any way you want.
- They are a powerful and flexible feature that can be used for a variety of purposes, such as creating custom REST APIs, generating custom reports, or integrating with external systems.
- You might already be using processors without even knowing it. For example, the out-of-the-box ServiceNow REST API is implemented using processors.
- To create a processor, you need to navigate to System Web Services > Processors in your ServiceNow instance. Then, click on New to create a new processor.
- When creating a processor, you need to specify the following fields:
- Name: The name of the processor.
- Type: The type of the processor (e.g., script, email, etc.).
- Path: The endpoint URL of the processor.
- Script: The script that will be executed when the processor is called.
- Here is a simple example of a processor script:
javascript
(function process(/*RESTAPIRequest*/ request, /*RESTAPIResponse*/ response) {
// parse request data
var body = request.body.data;
var name = body.name;
var email = body.email;
// create a new user record
var user = new GlideRecord('sys_user');
user.initialize();
user.name = name;
user.email = email;
user.insert();
// return the sys_id of the new user
return { sys_id: user.sys_id };
})();
This script creates a new user record in ServiceNow and returns the sys_id of the new user.
- To call a processor, you simply need to make a HTTP request to the processor's endpoint URL. The request method (GET, POST, etc.) and the request data depend on how the processor script is implemented.
- Processors are a powerful tool, but they should be used with caution. Since they provide a direct interface to the ServiceNow database, they can potentially expose sensitive data if not properly secured. Always make sure to implement proper access control and data sanitization in your processor scripts.
nowKB.com
If you want to know any information about Service Now . Visit to https://nowkb.com/home