# Search in a sublist

**URL:** <https://community.postman.com/t/search-in-a-sublist/64242>\
**Category:** Help Hub\
**Tags:** workflows, postman-flows\
**Created:** [July 18, 2024, 8:32am UTC](https://community.postman.com/t/search-in-a-sublist/64242 "2024-07-18T08:32:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielsoderlund](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@danielsoderlund](https://community.postman.com/u/danielsoderlund)\
**Post date:** [July 18, 2024, 8:32am UTC](https://community.postman.com/t/search-in-a-sublist/64242/1 "2024-07-18T08:32:20Z")

</div>

Hello,

I have a list that contains another list, and I need to determine if a value exists for a key in the sublist.

I attempted to use this, but I received an error indicating that the lists are empty.

```auto
$filter(list.column_values.value, fn ($v) {$v = value2})

```

column\_value is a list and value are the key.  
 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/c/0/c0238f95dca4722355433b3ae1a37b4657acbc74.png)

---

<div class="post-metadata">

**Author:** ![danielsoderlund](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@danielsoderlund](https://community.postman.com/u/danielsoderlund)\
**Post date:** [July 22, 2024, 6:43am UTC](https://community.postman.com/t/search-in-a-sublist/64242/2 "2024-07-22T06:43:35Z")

</div>

Anyone have a solution on this ?

---

<div class="post-metadata">

**Author:** ![danielsoderlund](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@danielsoderlund](https://community.postman.com/u/danielsoderlund)\
**Post date:** [July 22, 2024, 7:59am UTC](https://community.postman.com/t/search-in-a-sublist/64242/3 "2024-07-22T07:59:32Z")

</div>

I almost got it to work, it gives me output now but no hit’s on the filter.  
I guess it’s that the value in the list is "“456123465"”

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/0/a/0a3151ebee3832392066d2fb2195c21a56c6dabf.png)

---

<div class="post-metadata">

**Author:** ![lunar-module-1](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/lunar-module-1/32/26132_2.png) [@lunar-module-1](https://community.postman.com/u/lunar-module-1)\
**Post date:** [July 22, 2024, 10:38am UTC](https://community.postman.com/t/search-in-a-sublist/64242/4 "2024-07-22T10:38:41Z")

</div>

do you know how to do this with typescript/javascript? If so, change the language from FQL to typescript by clicking on FQL near the down arrow in the upper right corner.

---

<div class="post-metadata">

**Author:** ![danielsoderlund](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@danielsoderlund](https://community.postman.com/u/danielsoderlund)\
**Post date:** [July 22, 2024, 10:52am UTC](https://community.postman.com/t/search-in-a-sublist/64242/5 "2024-07-22T10:52:31Z")

</div>

I guess I can google/chatGPT how to do it 🙂 I’ll tak a look at it and get back if I get stuck.

---

<div class="post-metadata">

**Author:** ![lunar-module-1](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/lunar-module-1/32/26132_2.png) [@lunar-module-1](https://community.postman.com/u/lunar-module-1)\
**Post date:** [July 22, 2024, 11:04am UTC](https://community.postman.com/t/search-in-a-sublist/64242/6 "2024-07-22T11:04:12Z")

</div>

dm me your postman id I’ll give you access to postbot in flows you can try that :)?

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [August 21, 2024, 11:05am UTC](https://community.postman.com/t/search-in-a-sublist/64242/7 "2024-08-21T11:05:00Z")

</div>

Closed on August 21, 2024, 11:05am UTC

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