Create a simple processor

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 1분
  • Create a simple processor to execute a script from a URL query. This feature is deprecated.

    시작하기 전에

    You must have your own demonstration instance.

    Role required: admin

    이 태스크 정보

    주:
    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.

    프로시저

    1. Navigate to All > System Definition > Processors.
    2. Select New.
    3. Enter the following information.
      FieldValue
      Name Hello
      Type Script
      Path Hello
      Script
      var name= g_request.getParameter("name");
      g_processor.writeOutput("text/plain","Hello "+name);
    4. Select Submit.
    5. 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.