By means of an import format, you can specify which data, or rather columns, from an import file are to be transferred, how these columns are named and delimited (separators), and into which database tables the import data are to be taken over.
Which columns you can choose from when adding an import format depends on the DB table that is linked to the format. As a system administrator, you can adapt, modify and extend this database table to add custom fields to the import format. To do so, please proceed as follows:
- Log in to metasfresh with the user role “System Administrator”.
- Open “Table and Column” from the menu.
- Use the filter and search for the Table you want to modify, e.g., the import table “I_Product” for product data.
- Open the database table entry.
- Go to the record tab “Column” at the bottom of the page and click . An overlay window opens up.
- Scroll down to the field System Element, enter a part of the new column’s name and click on the matching result in the drop-down list.
- In the field above, enter the Length the new column shall have in the database.
- Click “Done” to close the overlay window and add the column to the list.
- Start the action “Synchronize column” to persist the column into the database.
- metasfresh saves the progress automatically.
|To transfer the imported data from a newly added column to the correct place within the system, a separate SQL function is required for each column following the pattern
I_Product_Import_After_Row_InterCheese(IN p_C_DataImport_ID numeric, IN p_recordId numeric,) for new columns in the import format for product data.
|The activation of new columns is done by our developers. Just contact us and we will take care of it!
Next Steps (optional)
View source file on GitHub.com