Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

[Question] Assign batch number to imported records from csv file #17434

Open
fernandoCPay opened this issue Apr 22, 2024 · 0 comments
Open

[Question] Assign batch number to imported records from csv file #17434

fernandoCPay opened this issue Apr 22, 2024 · 0 comments

Comments

@fernandoCPay
Copy link

fernandoCPay commented Apr 22, 2024

Hi, i created a new module to import batch records from csv file, i need to assign a batch number to every record from a file, so for example uploads from the first file would have 1 as batch number, then the records from file 2 would have 2 as batch number and so on.

If i try to use a workflow with trigger "Creating a record" every record in the file gets a different batch number.

I was also thinking on using a custom import handler, by default imports use CSVreader.php for csv files:
image

I can clone this and modify it to fit my needs, but what other changes would i need for my module to use this import handler instead of the default one?

Has anyone here implemented something similar?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant