you can join the temp table with the application table by relations. Create a relation column in the application’s table, which points to the temp table. Then join records in tables using API Set Relation using condition - Backendless SDK for JavaScript API Documentation go through all objects in application’s table and set the relation for it.
I need to import Customer avoiding duplication; saying that Customer on tmp table is identified by ID, and there are two different names FOR THE SAME ID, I need to select only the first one.
After imported Customer, I need to import Plans (avoiding duplication) generating the relationship between Customer and Plan
I don’t understand how adding join between application’s table and temp table can help.
To understand how to structure the CSVs with related data, I recommend adding a few sample records in each table, establishing relations between them and then running an export of your data on the Manage > Export screen of the app. On the Export screen make sure to select the entire “closure” of the tables. The resulting zip file with all the CSVs will be placed into the /export directory in the file storage of your app. It will be the best representation of the format you should use to import related data.
Is there a way to call backendkess’s import process from an Api Service?
Let me explain: in my application end user will upload a CSV with all data; at the end of the upload, the application Will call an Api Service to import data in Tables. End user knows nothing of CSV formatting. He periodically will import CSV file on application to update data.