---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# Create a custom processor

# Create a custom processor {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Create a custom processor to execute a script from a URL query. This feature is deprecated.

## Before you begin

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](https://servicenow-prod.fluidtopics.net/x1EOw4mDLxo1z7QG_tlNhQ "The scripted REST API feature allows application developers to build custom web service APIs.").

When complete, you can do the following tasks:

* Create a new processor
* Run a script from a URL query

The following example steps assume you have your own demonstration instance.

## Procedure

1. Navigate to AllSystem DefinitionProcessors.
2. Select New.
3. In the Name field, enter <kbd class="ph userinput">Hello</kbd>.
4. In the Type field, select script.
5. In the Path field, enter <kbd class="ph userinput">Hello</kbd>.
6. In the Script field, enter the following code.  

       var name = g_request.getParameter("name");
       g_processor.writeOutput("text/plain", "Hello " + name);

7. Select Submit.
8. Log out of the instance and open a new browser window.
9. Enter a URL query to the instance with the following format: https://instance.service-now.com/processor_name.do?parameter=value.  
   For example: https://\<instance name\>.service-now.com/Hello.do?name=world.
10. When prompted, enter the credentials for a valid user.

*[\>]: and then


