© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
2 replies
justjigga

Use ImportAction to import records and related records

I am using ImportAction to import a list of registrants and addresses. Each registrant can have a physical address and mailing address. The csv file looks something like:
firstname,lastname,phys_address,phys_city,phys_state,mail_address_mail_city,mail_state,yob
firstname,lastname,phys_address,phys_city,phys_state,mail_address_mail_city,mail_state,yob
.

My tables look like:
firstname,lastname,phys_address_id,mail_address_id,yob
firstname,lastname,phys_address_id,mail_address_id,yob


The documentation shows how to use relationships for lookups of existing relationships but I'm not certain how to create new ones. During the import process, I would like to create new addresses if the registrant does not exist, or update the addresses if the registrant does exist.

I know I can do this without using ImportAction but I like the ability to map columns during the import process.

Thanks!
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

Different ways to list related records
FilamentFFilament / ❓┊help
3y ago
Related records in list page
FilamentFFilament / ❓┊help
3mo ago
How to use ImportAction with files on server
FilamentFFilament / ❓┊help
17mo ago
Validate import before inserting records.
FilamentFFilament / ❓┊help
2y ago