Skip to main content

Hi Team,

 

I have requirement, where  I need to send back the response back to customer,

 

Below is message we will be receiving from customer, via Webhook connector.

 

   {

     "transId": "PUTO300000308",

     "whId": "OMEGA-TEST",

     "ownerCode": "199501010666", 

     "jobType": "11",

     "jobCode": "010000000408",

     "status": "ACTIVE",

     "eventAt": "2025-07-03 12:34:56",

     "containerId": "00493460370000410856",

     "jobGroupCode": "03072026" 

   }

 

 

The response customer is expecting are like below,

 

{

"transId": " PUTO300000308",

"status": "ok",

"message": ""

}

 

 

I need pick the transId value from the received data and built the response back with status “Ok” to them.

 

Please help to advice how I need achieve this.

Hi Pradeep,

You can use the below script in the Response event tab of the webhook connector

<arc:set attr="json.text" value="[_message.body]"/>
<arc:set attr="json.map:transId" value="/json/transId" />
<arc:call op="jsonDOMGet" item="json">
<arc:set attr="_response.write">{
"transId": "[json.transId]",
"status": "ok",
"message": ""
}</arc:set>
</arc:call>

 

This is my response events of webhook:

And my response is: 

 

For more information on custom responses: https://cdn.cdata.com/help/AZM/mft/Webhook.html#custom-responses


thank you Rohit,

 

its works perfectly.