Smart action is not applied to all selected items in the collection

After applying filters on collection, I’m selecting records on all the pages.
image

As the message and filters’ count state, there are 37 records.
image

But after smart action is applied, only 15 items are updated.
image

ids for update are retrieved from the request body in the following manner:

const attributes = request.body.data.attributes;
jobParams.ids = attributes.ids;

Expected behavior

All selected 37 ids (from all the pages) are sent to the back-end.

Actual behavior

Only ids selected on the current page are sent.

Hello @Vasilii,

To get around this problem you can edit the number of records per page by clicking on the brush at the top right of your screen and increasing the number of records visible per page.

I will take a look at it on my side.

Tell me if it helps! :slight_smile:

Hello @Vasilii,

Thank you for your patience.

To properly use the “select all” feature, you might need to update your code.
Please see here how to:
https://docs.forestadmin.com/documentation/how-tos/maintain/upgrade-notes-sql-mongodb/upgrade-to-v6#select-all-feature

The RecordsGetter helper should come in handy.

1 Like

Hi, @anon79585656! Thanks for the response, I’ll try it out & get back to you on that one.

@anon79585656, thanks a lot, it does work as expected :clap:t3:

1 Like