Skip to content
This repository was archived by the owner on Sep 13, 2024. It is now read-only.
This repository was 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

Description

@fernandoCPay

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions