# Why properties.textList.get() return empty?

**URL:** <https://forum.bubble.io/t/why-properties-textlist-get-return-empty/280150>\
**Category:** Plugin builders\
**Created:** [August 28, 2023, 10:22am UTC](https://forum.bubble.io/t/why-properties-textlist-get-return-empty/280150 "2023-08-28T10:22:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![salemmo409](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/salemmo409/32/202575_2.png) [@salemmo409](https://forum.bubble.io/u/salemmo409)\
**Post date:** [August 28, 2023, 10:22am UTC](https://forum.bubble.io/t/why-properties-textlist-get-return-empty/280150/1 "2023-08-28T10:22:16Z")

</div>

Hi everyone,  
In a server side action for a plugin I face a behavior that I don’t understand.

with a code like this:

```
function(properties, context)
    
    let sss = properties.main_list;
    let ddd = properties.main_list.get(0,3);
    let aaa = properties.main_list.length();
    let eee = sss.length;

    return { "new_list": sss }
}

```

it return the right list which is:  
a  
b  
c  
d

but when trying to return ddd:

```
function(properties, context) {
    
    let sss = properties.main_list;
    let ddd = properties.main_list.get(0,3);
    let aaa = properties.main_list.length();
    let eee = sss.length;

    return { "new_list": ddd }
}

```

it return an empty list.

and when trying to return those things:

```
function(properties, context) {
    
    let sss = properties.main_list;
    let ddd = properties.main_list.get(0,3);
    let aaa = properties.main_list.length();
    let eee = sss.length;

    return { "new_list": [sss[0], ddd[0], aaa.toString(), eee.toString()] }
}

```

it return those values (the first and the second are empty):  
 ![EaseUS_2023_08_27_14_28_03](https://us1.discourse-cdn.com/bubble/original/3X/2/1/21a4ea6110c4407240fe530c3b7f7340ab697fa8.png)

why it return empty values with ddd, sss[i], and ddd[i]? and what is the meaning of the values it return for .length and .length()?

this is the main list settings:

 ![EaseUS_2023_08_28_13_23_50](https://us1.discourse-cdn.com/bubble/original/3X/d/c/dc23f74b4e8b4147e5d9e582ffd826cfa57086f4.png)

and this is the new list settings:

 ![EaseUS_2023_08_28_13_24_11](https://us1.discourse-cdn.com/bubble/original/3X/5/2/52b66197d3c6fef7ac70d1c4fce931636c740d84.png)

and the data I am trying to pass is a list of names (text field) of data type

---

<div class="post-metadata">

**Author:** ![jared.gibb](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jared.gibb/32/123329_2.png) [@jared.gibb](https://forum.bubble.io/u/jared.gibb)\
**Post date:** [August 28, 2023, 10:29am UTC](https://forum.bubble.io/t/why-properties-textlist-get-return-empty/280150/2 "2023-08-28T10:29:37Z")

</div>

You need to use async/await syntax if you are using the most up to date version of the plugin builder

[https://manual.bubble.io/account-and-marketplace/building-plugins/updating-to-plugin-api-v4#.length-updated-plugin-api](https://manual.bubble.io/account-and-marketplace/building-plugins/updating-to-plugin-api-v4#.length-updated-plugin-api)

---

<div class="post-metadata">

**Author:** ![salemmo409](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/salemmo409/32/202575_2.png) [@salemmo409](https://forum.bubble.io/u/salemmo409)\
**Post date:** [August 28, 2023, 11:16am UTC](https://forum.bubble.io/t/why-properties-textlist-get-return-empty/280150/3 "2023-08-28T11:16:39Z")

</div>

Is the builder version a thing that I can choose or control?

---

<div class="post-metadata">

**Author:** ![salemmo409](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/salemmo409/32/202575_2.png) [@salemmo409](https://forum.bubble.io/u/salemmo409)\
**Post date:** [August 28, 2023, 11:49am UTC](https://forum.bubble.io/t/why-properties-textlist-get-return-empty/280150/4 "2023-08-28T11:49:57Z")

</div>

thank you very much, I have added two “await” and now it seems work well:

```
let ddd = await properties.main_list.get(0, await properties.main_list.length());
```
