Validate inbound response

Besides the HTTP code in the GET 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.

Out-of-box function:

CaseExchange_SAWUtil.validateInboundResponse

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:

Boolean or String:

  • false(Boolean): if the request is not validated
  • Id of the record in the endpoint (String): if the request is validated