In shopware it is possible to import/export data with a profile. See the following link.
https://docs.shopware.com/en/shopware-en/settings/importexport
The only problem now is that I want to upload data of a custom entity. I can’t find the custom entity in the profiles. So my question is of it is possible to upload this data in bulk via an CSV?
2
Answers
You’ll have to persist a import/export profile for your custom entity:
There you have to map your entities fields to the columns of the CSV.
If you want to influence how fields are written or read you might want to register a serializer for your entity. For example the product entity has a serializer:
Maybe have a look at the serializer for reference if your entity has some fields that need special treatment.
You have to add your entity to
vendor/shopware/administration/Resources/app/administration/src/module/sw-import-export/component/sw-import-export-edit-profile-general/index.js
to supportedEntieties() method
You can do it like this: