Happy Business Starts Here

How to validate callout responses under response tab in callout notification

Highlighted
Zuora Staff

How to validate callout responses under response tab in callout notification

Normally when we are using a callout to get the information from API or external system. We have to check the responses of the callout either success or failure in the next task of the workflow.

Callout notification.JPG

In the above screenshot, We are adding one more task to check the callout result is success or failure.

 

Actually we have to check the callout result under the response tab in the callout notification itself. We have to click on the 'Response Content Validation' checkbox and check the callout result using liquid syntax. Please find the below screenshot. 

callout.JPG

In the above screenshot, We have to validate process information based on the callout response body.

Example:

{% if Data.ResponseBody.success == true %}

{% assign validflag='True' %}

True

{% else %}

False
{% endif %}