ftos.data.importFile

IMPORTANT!  
Starting with v24.3.0, this is renamed from startImport to ftos.data.importFile.

Imports entity data from an Excel file (based on a data import template).

This is a data service method for business service components.

Syntax

Copy
function ftos.data.importFile(dataImportId : string, dataImportItemId : string, importedFile : string, defaultInsertValues : any): void;
 
Parameter Type Description
dataImportId string ID of the data import template.
dataImportItemId string ID of a data import item from the data import template.
importedFile string JSON string containing information about the imported Excel file from the data import item in the following format:
Copy
[{"Name":string, "RealName":string}]
NOTE  
The JSON object described above must be stringified when used as a parameter in the ftos.data.importFile function.
defaultInsertValues any JSON object containing default values for attributes missing from the import file.

Example