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:
- Click back in your browser to return to the create SOAP Message Function of CHS SOAP.
- 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: