Validate and parse outbound response

Besides the HTTP code in the POST REST response from Service Anywhere, the HTTP body also contains the information of whether the current request is successful. The function below checks the response body to validate this request and extract the Id if the request is validated.

Out-of-box function:

CaseExchange_SAWUtil.validateOutboundResponse

The function has the following parameters:

  • param: All parameters defined in the SMIS configuration. You can get a specific parameter value by using the param['object'] syntax. The change to any value in this parameter is not saved to the SMIS configuration.
  • response: The HTTP body of the REST response from end point.

The function returns the following result:

Object: The HTTP Header object