# Custom response in Webhook

**URL:** <https://community.cdata.com/t/custom-response-in-webhook/1125>\
**Category:** CData Arc\
**Tags:** question, webhook\
**Created:** [July 4, 2025, 2:44am UTC](https://community.cdata.com/t/custom-response-in-webhook/1125 "2025-07-04T02:44:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pradeep](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@Pradeep](https://community.cdata.com/u/Pradeep)\
**Post date:** [July 4, 2025, 2:44am UTC](https://community.cdata.com/t/custom-response-in-webhook/1125/1 "2025-07-04T02:44:21Z")

</div>

Hi Team,

I have requirement, where&nbsp; 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.

---

<div class="post-metadata">

**Author:** ![Rohit](https://sea3.discourse-cdn.com/cdata/user_avatar/community.cdata.com/rohit/32/638_2.png) [@Rohit](https://community.cdata.com/u/Rohit)\
**Post date:** [July 4, 2025, 7:05am UTC](https://community.cdata.com/t/custom-response-in-webhook/1125/2 "2025-07-04T07:05:02Z")

</div>

Hi Pradeep,

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

```auto
<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:

 ![32ebb83c-348e-441d-8dda-79472312e634.png](https://us1.discourse-cdn.com/cdata/original/1X/416a90dcab87d711928c57a91801b5b18a145bdf.png)

And my response is:

 ![18087a5e-e4a1-4c1f-8caa-3fe3e00bf3f1.png](https://us1.discourse-cdn.com/cdata/original/2X/d/d673a2acce533eb54c285dbecfdbf18615b9265c.png)

For more information on custom responses:&nbsp;[CData Arc - Webhook Connector | Version 25.3.9469](https://cdn.cdata.com/help/AZM/mft/Webhook.html#custom-responses)

---

<div class="post-metadata">

**Author:** ![Pradeep](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@Pradeep](https://community.cdata.com/u/Pradeep)\
**Post date:** [July 4, 2025, 8:54am UTC](https://community.cdata.com/t/custom-response-in-webhook/1125/3 "2025-07-04T08:54:18Z")

</div>

thank you Rohit,

its works perfectly.
