ExportBulkAction

Hello.
I have a modal named Cdr, it has 90 records, I had a Table Widget that shows all those records, I added the ExportBulkAction in order to select or filter records and export them to Excel:

->bulkActions([
    ExportBulkAction::make()
        ->label('Export calls')
        ->exporter(CdrExporter::class)
        ->formats([ExportFormat::Xlsx])
        ->columnMapping(false)
        ->modifyQueryUsing(function (Builder $query): Builder {
            return $query->whereDcontext($this->company->context());
        }),
])

If I select all of the 90 rows, the export action will only pick 21, If I pick 1 or 2 it may or may not ignore (see exports image).
How can I export the selected rows the right way?
image.png
Solution
Filament should use uniqueid then. Not sure what's the issue. But I'd guess it's not the Exporter but the BulkAction that cannot identify the records correctly
Was this page helpful?