{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":692,"path":"api-reference/scripts/t_CreatingACustomProcessor.md","title":"Create a custom processor","bundle":null,"doc_type":null,"release":"australia","body":"\n# Create a custom processor\n\nCreate a custom processor to execute a script from a URL query. This feature is deprecated.\n\n## Before you begin\n\nRole required: admin\n\n## About this task\n\n**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://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/c_CustomWebServices.md).\n\nWhen complete, you can do the following tasks:\n\n-   Create a new processor\n-   Run a script from a URL query\n\nThe following example steps assume you have your own demonstration instance.\n\n## Procedure\n\n1.  Navigate to **All** &gt; **System Definition** &gt; **Processors**.\n\n2.  Select **New**.\n\n3.  In the **Name** field, enter `Hello`.\n\n4.  In the **Type** field, select script.\n\n5.  In the **Path** field, enter `Hello`.\n\n6.  In the **Script** field, enter the following code.\n\n    ```\n    var name = g_request.getParameter(\"name\");\n    g_processor.writeOutput(\"text/plain\", \"Hello \" + name);\n    ```\n\n7.  Select **Submit**.\n\n8.  Log out of the instance and open a new browser window.\n\n9.  Enter a URL query to the instance with the following format: `https://instance.service-now.com/processor_name.do?parameter=value`.\n\n    For example: `https://<instance name>.service-now.com/Hello.do?name=world`.\n\n10. When prompted, enter the credentials for a valid user.\n\n\n**Parent Topic:**[Processors](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/scripts/c_Processors.md)\n\n"}}