© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•17mo ago•
17 replies
WashingtonG

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());
        }),
])
->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
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
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

ExportBulkAction doesn't work
FilamentFFilament / ❓┊help
2y ago
ExportBulkAction -> FilamentExporter -> delimiter not working?
FilamentFFilament / ❓┊help
2y ago
ExportBulkAction don't work with selected record
FilamentFFilament / ❓┊help
13mo ago
How to change file name when ExportBulkAction
FilamentFFilament / ❓┊help
3y ago