Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant