# Set variable producing empty collections from http easybill

**URL:** https://community.make.com/t/set-variable-producing-empty-collections-from-http-easybill/72022
**Category:** Questions
**Tags:** arrays, mapping
**Created:** [March 2, 2025, 12:58pm UTC](https://community.make.com/t/set-variable-producing-empty-collections-from-http-easybill/72022 "2025-03-02T12:58:56Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Till\_Vienna](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@Till\_Vienna](https://community.make.com/u/Till_Vienna)
#### Post date: [March 2, 2025, 12:58pm UTC](https://community.make.com/t/set-variable-producing-empty-collections-from-http-easybill/72022/1 "2025-03-02T12:58:56Z")

</div>

I am pulling data from easybill via http and I receive it like this:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/8/780f72f998bc4834e309a45d944ee8816ba7b9b6.png)

In the next step I want to pull the “company\_name” which is in data.items from all 12 collections.. But it always comes back empty. I am not even able to pull a single value.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/c/b/cb548fe6b8c6961d422900d9a5335afd5c9129ce.png)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/a/7ac89e01b6f3f78ef8e7ad61a277ff9f58c0a259.png)

The idea is that I am pulling this data and push it back into a typeform dropdown menu but as pointed out, I am not even able to get the data handed over.

[output.txt](https://community.make.com/uploads/short-url/zycP6txZ19QwhsRY1peXR6XPqaO.txt) (52.8 KB)

attached also the output file from the http module

---

<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: [March 2, 2025, 2:19pm UTC](https://community.make.com/t/set-variable-producing-empty-collections-from-http-easybill/72022/2 "2025-03-02T14:19:37Z")

</div>

Welcome to the Make community!

You don’t need the double quotes around the `company_name` parameter in the `map` function. Remove them.

Also, the map function works with ARRAYS. You inserted `15.data`, which is NOT an array. Look closely and see which other variables is an array?

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/c/8/c821949bcb88c00c395ee98d8ab4378b9bb844e5.png)

You can use the built-in functions `map` and `first` to access variables within an array.

e.g.:

```plaintext
{{ first(map(15.data.items; "company_name")) }}

```

Copy and paste the above line exactly.

For more information, see the “Mapping with arrays” link below.

Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —

### Getting Started

- [Help Centre](https://www.make.com/en/help) | [Tutorials](https://www.make.com/en/help/tutorials.html) – Make “Manual”
- [Make Academy](https://academy.make.com) – Basics 101: Learn Make and get certified

### Help Centre Basics

- [Mapping](https://www.make.com/en/help/mapping/mapping) – What is mapping? What can I map?
- [Mapping with arrays](https://www.make.com/en/help/mapping/mapping-arrays) – How to map items in an array
- [Aggregate an array for mapping complex fields](https://www.make.com/en/help/tools/flow-control#customizing-the-output)
- **Date Format** : [tokens for `parseDate`](https://www.make.com/en/help/functions/tokens-for-date-time-parsing) | [tokens for `formatDate`](https://www.make.com/en/help/functions/tokens-for-date-time-formatting)
- [HTTP modules](https://www.make.com/en/help/tools/http) – Make a request, Get (download) a file
- [Webhooks](https://www.make.com/en/help/tools/webhooks) – Error Handling, Responding to webhooks

### Articles & Videos

- [Router Magic Formula](https://www.youtube.com/watch?v=4Q-5BsCtJu4) - YouTube
- [Error Handlers in Make](https://www.youtube.com/playlist?list=PLRE9E-rAD8U10mx2TRs54Nq1XJDdK9Kx4) - YouTube playlist
- [Getting started with OpenAI](https://community.make.com/t/getting-started-with-openai-gpt-3-and-make/7796) - How to setup and use OpenAI (ChatGPT) in Make
- [How to use Regex in Make](https://community.make.com/t/how-to-use-regex-in-make/202) - How to use pattern matching to extract the text you want
- [Webhooks – Make Academy](https://academy.make.com/courses/IntermediateC04) – tutorial on how to use Webhooks

Hope this helps! Let me know if there are any further questions or issues.

— @samliew

P.S.: Investing some effort into the [Make Academy](https://academy.make.com) will save you lots of time and frustration using Make.

---

<div class="post-metadata">

### Author: ![Till\_Vienna](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@Till\_Vienna](https://community.make.com/u/Till_Vienna)
#### Post date: [March 2, 2025, 2:41pm UTC](https://community.make.com/t/set-variable-producing-empty-collections-from-http-easybill/72022/3 "2025-03-02T14:41:04Z")

</div>

Thanks, that is already very helpful.

I tried that now but the variable still comes back empty.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/b/6/b60bbf6de399236497bd33b927b8cb1372f44bca.png)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/f/4f4473bd6f1937af35366625b8b1ee6dc4912ce0.png)

my educated guess is that, as you pointed out “items” is an array, while “1,2,3 etc.” are again a “collection”. Which in turn seems to be the reason I am not getting the company name back but an empty "collection.

---

<div class="post-metadata">

### Author: ![Till\_Vienna](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@Till\_Vienna](https://community.make.com/u/Till_Vienna)
#### Post date: [March 2, 2025, 4:02pm UTC](https://community.make.com/t/set-variable-producing-empty-collections-from-http-easybill/72022/4 "2025-03-02T16:02:58Z")

</div>

tried now “Set variable”, “iterartor” and even changing the http modul from json to html but I am still not able to pull a single data point into the next module. Maybe it is a general issue and I should rebuild it in a new scenario from scratch

---

<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: [March 3, 2025, 7:35am UTC](https://community.make.com/t/set-variable-producing-empty-collections-from-http-easybill/72022/5 "2025-03-03T07:35:53Z")

</div>

If you need further assistance, please provide the following:

Please provide the text (not screenshot) for **output** bundles of module [15] by running the scenario (you can also get this without re-running your scenario from the [History tab](https://www.make.com/en/help/scenarios/scenario-execution-history)).

Click on the white speech bubbles on the top-right of each module and select “Download input/output bundles”.

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/8/2876156ab3ea5bc9e40bbc0edfb9f025406b7c48.png)

### A. Upload as a Text File

Save each bundle contents in a plain text editor (without formatting) as a `bundle.txt` file.

You can upload the file here by clicking on this button:  
 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/e/e/eea8fed2e9a3099e825050ba8b652b3699cd1a74.png)

### B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.  
These are the two ways to format text so that it won’t be modified by the forum:

- **Method 1: Type code block manually**

- **Method 2. Highlight and click the format button in the editor**

Providing the input/output bundles will allow others to replicate what is going on in the scenario, especially if there are complex data structures (nested arrays and collections) or if external services are involved.

This will allow others to better assist you. Thanks!

— @samliew

P.S.: Investing some effort into the [Make Academy](https://academy.make.com) will save you lots of time and frustration using Make.

---

<div class="post-metadata">

### Author: ![Till\_Vienna](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@Till\_Vienna](https://community.make.com/u/Till_Vienna)
#### Post date: [March 3, 2025, 11:52am UTC](https://community.make.com/t/set-variable-producing-empty-collections-from-http-easybill/72022/6 "2025-03-03T11:52:40Z")

</div>

[output easybill.txt](https://community.make.com/uploads/short-url/dGdoU0jRCTFf40IRzh84wYBOAbC.txt) (29.7 KB)

here is what the output looks like. I now switched to the easybill module for “search customers” directly.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/e/3/e3693bff66031cbd57544a303638cc01aa28eca7.png)  
and this is what choices I have when I want to select a variable value for the “set variable”

---

<div class="post-metadata">

### Author: ![Till\_Vienna](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@Till\_Vienna](https://community.make.com/u/Till_Vienna)
#### Post date: [March 3, 2025, 12:03pm UTC](https://community.make.com/t/set-variable-producing-empty-collections-from-http-easybill/72022/7 "2025-03-03T12:03:24Z")

</div>

[output HTTP.txt](https://community.make.com/uploads/short-url/bBeJXEB2MIB32Acsho80QsxqDF8.txt) (52.7 KB)  
and here the output if I use the HTTP get function

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/3/7/373d99773c86191e104bc4ce753a6ae7096e5eee.png)  
and what it looks like if I try to set the variable value in the set variable module

---

<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: [June 1, 2025, 11:12am UTC](https://community.make.com/t/set-variable-producing-empty-collections-from-http-easybill/72022/8 "2025-06-01T11:12:30Z")

</div>


