# Get all records for current list view

**URL:** <https://forum.kintone.dev/t/get-all-records-for-current-list-view/719>\
**Category:** General\
**Tags:** get-records-api\
**Created:** [February 1, 2023, 5:31am UTC](https://forum.kintone.dev/t/get-all-records-for-current-list-view/719 "2023-02-01T05:31:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TylerR](https://avatars.discourse-cdn.com/v4/letter/t/f17d59/32.png) [@TylerR](https://forum.kintone.dev/u/TylerR)\
**Post date:** [February 1, 2023, 5:31am UTC](https://forum.kintone.dev/t/get-all-records-for-current-list-view/719/1 "2023-02-01T05:31:13Z")

</div>

## Question / Problem

I am making a plugin and would like to get all the records for the current view, and that match filter applied.

### Code / Attempts

I have looked at the REST API get records. I know that I can get the filter for the current view, but I am not sure how to also apply the additional filters added by the user

## Desired Outcome / Expected Behavior

I would like to get all the records that are in the given view and match the applied filters

Additional Reference:

> [@Get all records for current list view {Archived}](https://forum.kintone.dev/t/get-all-records-for-current-list-view-archived/718):
>
> The ability to see all the records in the current [list view](https://get.kintone.help/k/en/id/040614.html) would be nice. This would let a user filter records with views and Kintone’s filters and let developers then loop through all the records that match the given filter. Currently, you can only get a view’s query string, and the records returned in the [Onload Event app.record.index.show](https://kintone.dev/en/docs/kintone/js-api/events/record-list-event/#onload-event-desktop) are only the ones for the current page. This makes it nearly impossible to use Kintone’s list view filters for anything other than display.

---

<div class="post-metadata">

**Author:** ![Chris](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/chris/32/44_2.png) [@Chris](https://forum.kintone.dev/u/Chris)\
**Post date:** [February 1, 2023, 8:59pm UTC](https://forum.kintone.dev/t/get-all-records-for-current-list-view/719/2 "2023-02-01T20:59:44Z")

</div>

Hello @TylerR

Could you elaborate on what you mean by additional filters added by users?

---

<div class="post-metadata">

**Author:** ![TylerR](https://avatars.discourse-cdn.com/v4/letter/t/f17d59/32.png) [@TylerR](https://forum.kintone.dev/u/TylerR)\
**Post date:** [February 1, 2023, 9:12pm UTC](https://forum.kintone.dev/t/get-all-records-for-current-list-view/719/3 "2023-02-01T21:12:54Z")

</div>

This filters added at the filter button. ![image](https://canada1.discourse-cdn.com/flex035/uploads/kintone/original/1X/ed234637736d11391477eefee34d3e06d35a178e.png)

---

<div class="post-metadata">

**Author:** ![Sean\_Tcbn](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/sean_tcbn/32/68_2.png) [@Sean\_Tcbn](https://forum.kintone.dev/u/Sean_Tcbn)\
**Post date:** [February 3, 2023, 6:19pm UTC](https://forum.kintone.dev/t/get-all-records-for-current-list-view/719/4 "2023-02-03T18:19:00Z")

</div>

Hi @TylerR

I apologize, but it is difficult to understand the details of your inquiry at this moment.

May we ask how you have set up the filtering via Javascript query?

If the query refers to a query retrieved with the `kintone.app.getQuery` function, like below,

`const currentQuery = kintone.app.getQuery();`

I think it is possible to add the condition to **“apply the additional filters added by the user”** for the value set in `currentQuery` and develop it to a newly defined variable such as `currentNewQuery`, after specifying it in the query, and then execute the “GET” Bulk Record Retrieval method.

Would the above process be feasible for you?

If this is not what you are looking for, please let us know the phenomenon you are having trouble with, what kind of situation you would like to improve, and include the process details.

---

<div class="post-metadata">

**Author:** ![TylerR](https://avatars.discourse-cdn.com/v4/letter/t/f17d59/32.png) [@TylerR](https://forum.kintone.dev/u/TylerR)\
**Post date:** [February 4, 2023, 2:46am UTC](https://forum.kintone.dev/t/get-all-records-for-current-list-view/719/5 "2023-02-04T02:46:22Z")

</div>

Thank you. This is exactly what I was looking for.
