# BLL to extract webhook body

**URL:** <https://community.homey.app/t/bll-to-extract-webhook-body/121313>\
**Category:** Questions & Help\
**Tags:** flow, bll\
**Created:** [November 22, 2024, 8:24pm UTC](https://community.homey.app/t/bll-to-extract-webhook-body/121313 "2024-11-22T20:24:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pairis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pairis/32/56439_2.png) [@Pairis](https://community.homey.app/u/Pairis)\
**Post date:** [November 22, 2024, 8:24pm UTC](https://community.homey.app/t/bll-to-extract-webhook-body/121313/1 "2024-11-22T20:24:18Z")

</div>

Hi all,

Sorry for the noob question but I’ve got a webhook body and I’d like to extract some info from it.

`{"response_id":"15","created_at":"2024-11-22T19:59:17.554Z","form_id":"xxxxx","form_name":"xxxx","workspace_id":"yyyyy","timezone":"Europe/Amsterdam","page_url":"zzzzzzz,"test":false,"workflow_data":[],"response_data":{"From (number)":[{"label":"NAME","value":"NUMBER"}],"Message":"IMPUT"}}`

I need:

“value”:“NUMBER”  
“Message”:“IMPUT”

I have BLL, but don’t know how to get it to do the above.

Thanks very much on all the advice on how to get there!

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [November 22, 2024, 9:05pm UTC](https://community.homey.app/t/bll-to-extract-webhook-body/121313/2 "2024-11-22T21:05:56Z")

</div>

Use these standard logic THEN cards:

 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/7/973a43e0ed1d6df52ee140dc054010a12e2f2569.png)

And set JSON path to:  
response\_data[“From (number)”][0].label  
response\_data.Message

And please post JSON as “code” to keep simple " " signs  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/b/3be66003e7304471e60c063ebddaa91de7a045b7.png)

---

<div class="post-metadata">

**Author:** ![Pairis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pairis/32/56439_2.png) [@Pairis](https://community.homey.app/u/Pairis)\
**Post date:** [November 22, 2024, 9:43pm UTC](https://community.homey.app/t/bll-to-extract-webhook-body/121313/3 "2024-11-22T21:43:15Z")

</div>

> [@RonnyW](#):
>
> response\_data[“From (number)”][0].label

Thanks for your quick response! Forgot about those!

**response\_data[“From (number)”][0].label** gave me the following error

```auto
Lexical error on line 1. Unrecognized text.
$.response_data[“From (number)”][0].

----------------^

```

**response\_data.Message** gave me the full body again, not the Message part.

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [November 22, 2024, 9:54pm UTC](https://community.homey.app/t/bll-to-extract-webhook-body/121313/4 "2024-11-22T21:54:40Z")

</div>

> [@RonnyW](#):
>
> response\_data[“From (number)”][0].label

Please try again with this code format that. Perhaps your browser exchanged the douoble quotes with unicode characters.

```auto
response_data["From (number)"][0].label

```

---

<div class="post-metadata">

**Author:** ![Pairis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pairis/32/56439_2.png) [@Pairis](https://community.homey.app/u/Pairis)\
**Post date:** [November 22, 2024, 10:14pm UTC](https://community.homey.app/t/bll-to-extract-webhook-body/121313/5 "2024-11-22T22:14:51Z")

</div>

Still the same error for the number.

But a correction at the message part. There the response is:

{“event”:“R1”,“data1”:“field2”,“data2”:“field3”}

Which is still confusing.

---

<div class="post-metadata">

**Author:** ![Pairis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pairis/32/56439_2.png) [@Pairis](https://community.homey.app/u/Pairis)\
**Post date:** [November 22, 2024, 10:17pm UTC](https://community.homey.app/t/bll-to-extract-webhook-body/121313/6 "2024-11-22T22:17:18Z")

</div>

Also to add,

The trigger is the community app Webhooks.

This bc I could not let the Logic Webhook module to be triggered by Formcrafts.

But I will give that one another try in the morning.

---

<div class="post-metadata">

**Author:** ![Pairis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pairis/32/56439_2.png) [@Pairis](https://community.homey.app/u/Pairis)\
**Post date:** [November 23, 2024, 7:10pm UTC](https://community.homey.app/t/bll-to-extract-webhook-body/121313/7 "2024-11-23T19:10:27Z")

</div>

So I managed to configure the logic Webhook receive module.

Unfortunately It can only handle 1 card, so therefore I now pas it through a no-code platform.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/1/0186c5c170671106be2a40977540f5e2c6e4a471.png)

Now I need to split the string based on the “|”

Any suggestions?

---

<div class="post-metadata">

**Author:** ![Pairis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pairis/32/56439_2.png) [@Pairis](https://community.homey.app/u/Pairis)\
**Post date:** [November 24, 2024, 10:41pm UTC](https://community.homey.app/t/bll-to-extract-webhook-body/121313/8 "2024-11-24T22:41:42Z")

</div>

Couple of trials and errors and with some help of Perplexity AI, I managed to get it right!

Thanks all!
