Perform some function upon importing data

Hi,
I would like to import items into quotation using the import data function. But if the item isnt available in the Item db , I would like to add it.

What would be the files I need to work with? Giving me some direction would be great.

You should write your own importer as a Python script. You can use the REST API to query if the item exists and create it if it does not.

Hi,
Thank you, that would take care of adding items. Would someone tell me which are the server / client side files in context with data import tool so I could check the code? I have checked upload.js & import_file.py but isn’t making it clear enough. Any help in this regard would be great.

Hi,
I figured its a page. I think i have what i need at https://github.com/frappe/frappe/tree/develop/frappe/core/page/data_import_tool

ty

Its a bad idea to change those. The work needs to be done by your importer outside the import tool.