F
Filament5mo ago
Keika

How to add a column in an ImportCsv Action that is not in the csv file

Hi, my action wants to compare an amount in csv to an amount on the record. If the amount is the same, the status on the record needs to change to "paid". Rather simple, however it seems that the coulmns that are passed to the importer are only the columns defined in the getColumns method. I tried adding a column inside of resolveRecord by doing $this->data['status'] = 'paid; but the job does not see it (I used Ray to check). How can I add this column so that the record will be updated correcly WITHOUT changing the CSV file? Thanks
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server