# Custom Actions not fetching all the data

**URL:** <https://forum.adalo.com/t/custom-actions-not-fetching-all-the-data/5677>\
**Category:** Get Help\
**Created:** [November 6, 2020, 12:38pm UTC](https://forum.adalo.com/t/custom-actions-not-fetching-all-the-data/5677 "2020-11-06T12:38:06Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArijitDas](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@ArijitDas](https://forum.adalo.com/u/ArijitDas)\
**Post date:** [November 6, 2020, 12:38pm UTC](https://forum.adalo.com/t/custom-actions-not-fetching-all-the-data/5677/1 "2020-11-06T12:38:06Z")

</div>

Does anyone know if it is possible to fetch multiple rows using custom actions. It seems it only stores the first element of the array

---

<div class="post-metadata">

**Author:** ![Devops](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/devops/32/3723_2.png) [@Devops](https://forum.adalo.com/u/Devops)\
**Post date:** [November 6, 2020, 2:51pm UTC](https://forum.adalo.com/t/custom-actions-not-fetching-all-the-data/5677/2 "2020-11-06T14:51:33Z")

</div>

Hi @ArijitDas, welcome to the community! 😊

Adola currently doesn’t support creating multiple records from a JSON array with custom Actions.

The good news is that there is a workaround with external collections, once you have succefully set up your Url endpoint you can “filter” your list by parsing parameters.

 ![Filtered List API](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/b/b0ebb0291577133cb911c7008eefcbd12d9acf7b.png)

It’s no perfect and in some use cases this can’t be emplemented, but until the devs find a solution that’s all we have 😇

---

<div class="post-metadata">

**Author:** ![ArijitDas](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@ArijitDas](https://forum.adalo.com/u/ArijitDas)\
**Post date:** [November 6, 2020, 3:11pm UTC](https://forum.adalo.com/t/custom-actions-not-fetching-all-the-data/5677/3 "2020-11-06T15:11:33Z")

</div>

Hi Rae ,

Thanks for the alternative but the main problem here is external API collection does not support dynamic bearer token allocation which in turn expose lot of unrestricted data .

![7F709C516A514CE7A5F23ADE0D4C695D[4751348].png](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/b/b9e9565dd99f6c8658b56546426b19415aa6d29c.png)

![4827AA03091349CAA7E9AC9AB045B6CE[4751349].png](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/9/9f7388f36c4d837067ba2843a1b6f1c4bb26ee74.png)

![763BED5766684CFA898362F56341498D[4751350].png](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/2/293682dccfefa12eb22d350b69e287ef0f25ef66.png)

![AEC86A1F42E2474083715EF777E6933F[4751351].png](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/7/75a7267bd248704879a065e1fbd5562826fead97.png)

 ![464541F3118749298B084D42BAD61159.png](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/6/677f06bdf711468707faf594c72c7993f90d2513.png)

---

<div class="post-metadata">

**Author:** ![Devops](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/devops/32/3723_2.png) [@Devops](https://forum.adalo.com/u/Devops)\
**Post date:** [November 6, 2020, 3:23pm UTC](https://forum.adalo.com/t/custom-actions-not-fetching-all-the-data/5677/4 "2020-11-06T15:23:03Z")

</div>

> [@ArijitDas](#):
>
> API collection does not support dynamic bearer token

This issue can be addressed to the devs, in the meantime would your app’s API work for you? 👇

> **[The Adalo API](https://help.adalo.com/integrations/the-adalo-api)**
>
> How to connect other applications to your Adalo app using your App's API.

---

<div class="post-metadata">

**Author:** ![ArijitDas](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@ArijitDas](https://forum.adalo.com/u/ArijitDas)\
**Post date:** [November 6, 2020, 3:52pm UTC](https://forum.adalo.com/t/custom-actions-not-fetching-all-the-data/5677/5 "2020-11-06T15:52:54Z")

</div>

Hi Rae,

I am getting error response

400 Bad request

Request failed with status code 500

I am using the correct bearer token , appid and collectionid

![7F709C516A514CE7A5F23ADE0D4C695D[4751348].png](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/b/b9e9565dd99f6c8658b56546426b19415aa6d29c.png)

![4827AA03091349CAA7E9AC9AB045B6CE[4751349].png](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/9/9f7388f36c4d837067ba2843a1b6f1c4bb26ee74.png)

![763BED5766684CFA898362F56341498D[4751350].png](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/2/293682dccfefa12eb22d350b69e287ef0f25ef66.png)

![AEC86A1F42E2474083715EF777E6933F[4751351].png](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/7/75a7267bd248704879a065e1fbd5562826fead97.png)

 ![464541F3118749298B084D42BAD61159.png](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/6/677f06bdf711468707faf594c72c7993f90d2513.png)

---

<div class="post-metadata">

**Author:** ![ArijitDas](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@ArijitDas](https://forum.adalo.com/u/ArijitDas)\
**Post date:** [November 6, 2020, 3:58pm UTC](https://forum.adalo.com/t/custom-actions-not-fetching-all-the-data/5677/6 "2020-11-06T15:58:29Z")

</div>

Hi Rae ,

It works fine for internal collections but not for external collections

![7F709C516A514CE7A5F23ADE0D4C695D[4751348].png](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/b/b9e9565dd99f6c8658b56546426b19415aa6d29c.png)

![4827AA03091349CAA7E9AC9AB045B6CE[4751349].png](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/9/9f7388f36c4d837067ba2843a1b6f1c4bb26ee74.png)

![763BED5766684CFA898362F56341498D[4751350].png](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/2/293682dccfefa12eb22d350b69e287ef0f25ef66.png)

![AEC86A1F42E2474083715EF777E6933F[4751351].png](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/7/75a7267bd248704879a065e1fbd5562826fead97.png)

 ![464541F3118749298B084D42BAD61159.png](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/6/677f06bdf711468707faf594c72c7993f90d2513.png)

---

<div class="post-metadata">

**Author:** ![Devops](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/devops/32/3723_2.png) [@Devops](https://forum.adalo.com/u/Devops)\
**Post date:** [November 6, 2020, 4:36pm UTC](https://forum.adalo.com/t/custom-actions-not-fetching-all-the-data/5677/7 "2020-11-06T16:36:45Z")

</div>

First, did you correctly set up your **Header Auth**?

 ![Auth](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/4/4621970c2bba5d81391e8afd16ea7592a44b2b41.png)

Secondly, if you are expecting a JSON array response did you set up **your key**?

 ![Key](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/f/fa93d347cccc93b49524017338f562b84fa3d334.png)

---

<div class="post-metadata">

**Author:** ![ArijitDas](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@ArijitDas](https://forum.adalo.com/u/ArijitDas)\
**Post date:** [November 6, 2020, 5:07pm UTC](https://forum.adalo.com/t/custom-actions-not-fetching-all-the-data/5677/8 "2020-11-06T17:07:46Z")

</div>

Hi Rae,

I am able to fetch data within the application but not as api call.Yes header and everything is set correctly which is the reason the data is saved as external collection.

Regards,  
Arijit

---

<div class="post-metadata">

**Author:** ![Devops](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/devops/32/3723_2.png) [@Devops](https://forum.adalo.com/u/Devops)\
**Post date:** [November 6, 2020, 5:26pm UTC](https://forum.adalo.com/t/custom-actions-not-fetching-all-the-data/5677/9 "2020-11-06T17:26:29Z")

</div>

Sorry for the confusion, I thought your error was within the application 🙃  
I haven’t personally tested the external API yet as this feature was recently released by the devs.

I’ll check this out over the weekend to see if there are any bugs on my side.  
For reference…are you using Postman to test your API calls?

---

<div class="post-metadata">

**Author:** ![Devops](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/devops/32/3723_2.png) [@Devops](https://forum.adalo.com/u/Devops)\
**Post date:** [November 6, 2020, 7:50pm UTC](https://forum.adalo.com/t/custom-actions-not-fetching-all-the-data/5677/10 "2020-11-06T19:50:45Z")

</div>

Hi again, just tested the external API on and all is working fine 👇

 ![Postman](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/5/5fc5fc2621ab06b3280736c59bc3a7e16b3dbcfd.png)

Did you correctly follow the steps in your collections **API Documentation**?

 ![API Documentation](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/0/0dcc6a028ddb7d6efe012b09da3d7b972f32a6f5.png)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [November 16, 2020, 7:50pm UTC](https://forum.adalo.com/t/custom-actions-not-fetching-all-the-data/5677/11 "2020-11-16T19:50:46Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
