Create a simple processor to execute a script from a URL query. This feature is
deprecated.
About this task
Note: This feature is deprecated. While legacy, existing custom processors continue to be supported, creating new custom processors has been deprecated. Instead, use the
Scripted REST APIs.
The following steps assume that you have your own demonstration instance.
Procedure
-
Navigate to .
-
Click New.
-
Enter the following information.
| Field | Value |
|---|
| Name |
Hello |
| Type |
Script |
| Path |
Hello |
| Script |
var name= g_request.getParameter("name");
g_processor.writeOutput("text/plain","Hello "+name);
|
-
Click Submit.
-
Enter a URL query to the instance with the following format:
https://instance.service-now.com/processor_name.do?parameter=value
For example: https://<instancename>.service-now.com/Hello.do?name=world.