Sending the message

Once test messages are working, it is appropriate to integrate them into the application workflow. Once the Maintenance task is approved (which happens in a workflow), an assignment rule sets the Assignment group field to Cornell Hotel Services. That sounds like a good point to fire off the SOAP message using a Business Rule. To help, ServiceNow will generate the code for you.

Follow these steps to make this happen:

  1. Click back in your browser to return to the create SOAP Message Function of CHS SOAP.
  2. Click on Preview Script Usage. It will pop up a window with a code snippet that we'll use as a basis, using with examples provided by the variable substitutions:
This code could be run in Background Scripts as is, which ...

Get ServiceNow: Building Powerful Workflows now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.