Create a simple processor
On this page
Create a simple processor
Create a simple processor to execute a script from a URL query. This feature is deprecated.
Before you begin
You must have your own demonstration instance.
Role required: admin
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.
Procedure
-
Navigate to All > System Definition > Processors.
-
Select New.
-
Enter the following information.
<table id=“choicetable_wfd_v4x_3q”><thead><tr><th align=“left” id=“d576809e112”>
Field
</th><th align=“left” id=“d576809e115”>
Value
</th></tr></thead><tbody><tr><td id=“d576809e121”>
Name
</td><td>
Hello
</td></tr><tr><td id=“d576809e130”>
Type
</td><td>
Script
</td></tr><tr><td id=“d576809e139”>
Path
</td><td>
Hello
</td></tr><tr><td id=“d576809e148”>
Script
</td><td>
var name= g_request.getParameter("name"); g_processor.writeOutput("text/plain","Hello "+name);
</td></tr></tbody> </table>4. Select Submit.
-
Enter a URL query to the instance with the following format:
https://instance.service-now.com/processor_name.do?parameter=valueFor example:
https://<instancename>.service-now.com/Hello.do?name=world.
Parent Topic:Processors
Keep exploring.
Find another answer, or bring this documentation into your own tools.