# Retrieve an array inside multiple collections (from a webhook)

**URL:** <https://community.make.com/t/retrieve-an-array-inside-multiple-collections-from-a-webhook/22031>\
**Category:** Questions\
**Tags:** collections, arrays, webhooks\
**Created:** [December 16, 2023, 4:16am UTC](https://community.make.com/t/retrieve-an-array-inside-multiple-collections-from-a-webhook/22031 "2023-12-16T04:16:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gleb\_Kras](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@Gleb\_Kras](https://community.make.com/u/Gleb_Kras)\
**Post date:** [December 16, 2023, 4:16am UTC](https://community.make.com/t/retrieve-an-array-inside-multiple-collections-from-a-webhook/22031/1 "2023-12-16T04:16:23Z")

</div>

Hi! I’ve tried searching this from previous questions but after trying everything still can’t get it to work…

I’m trying to retrieve data from an API call to Calendly and have that data formatted to text to be sent as notification by email.

I’m stuck on extracting the data from an array deep inside multiple collections.

The data I’m trying to retrieve are the ‘questions\_and\_answers’ and have each questions and answer written out.

Here is the sample output:

{  
“body”: {  
“resource”: {  
“created\_at”: “2023-12-15T16:36:53.640030Z”,  
“questions\_and\_answers”: [  
{  
“answer”: “Test”,  
“question”: “Name (First name, Last name)”,  
“question\_uuid”: “f85a4e34-8c40-4475-99a1-fd768410a9b3”  
},  
{  
“answer”: “[gleb@ilienko.com](mailto:gleb@ilienko.com)”,  
“question”: “Email”,  
“question\_uuid”: “4f5a72b1-40df-4510-870d-d4aa6d890f5c”  
},  
{  
“answer”: “+66 80 686 9834”,  
“question”: “Phone number (or WhatsApp number)”,  
“question\_uuid”: “5a384543-2d03-4d57-8e87-bbf554d83317”  
},  
}

![CleanShot 2023-12-16 at 11.17.01](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/e/6/e6452f6ec48e76e2c7ba2c029e60ad9647ee315a.png)

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [December 16, 2023, 6:18am UTC](https://community.make.com/t/retrieve-an-array-inside-multiple-collections-from-a-webhook/22031/2 "2023-12-16T06:18:17Z")

</div>

Welcome to the Make community!

Use the built-in function `toCollection` to extract the values from an array of collections.

 ![Screenshot_2023-12-16_141203](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/f/a/fa4a9513cfc7f452c3056167921be4426f361a94.png)

### Output

 ![Screenshot_2023-12-16_141216](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/e/b/ebde82d40199b001441f78dc26817b3a9b0a687e.png)

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [March 15, 2024, 6:32am UTC](https://community.make.com/t/retrieve-an-array-inside-multiple-collections-from-a-webhook/22031/3 "2024-03-15T06:32:47Z")

</div>


