I would like to know if anybody has created anything where it allows the user that is uploading the Excel file, to specify the mapping.
As it is, the ExcelToRecord action requires that a Record definition is set.
However, I have a requirement where users have Excel spreadsheets where the column names could be anything, some may have more columns, some may have fewer.
The uploading happens with some steps -
1. The user uploads the file
2. The application matches as many of the columns on the file that it can to the fields
2. The user maps the columns that was missed by the application
3. They review it, and save it (standard stuff from there on)
Has anybody done anything like this before?
Thanks
Willem
Hi Willem,
You can convert excel into json usnig Excel translator component. Converting json no need any data structure then desrialized json into list.
Please find component link-https://www.outsystems.com/forge/component-overview/9929/excel-translator
Arun
Thanks Arun.
I made use of the XLToJSON action, and could then map to a generic record to do the rest of the screen actions.
Happy to help you😊
Hi
While importing records using Excel you should consider 2 points. 1. Either number of columns should be same as in entity then it will mapping automatically.2 if no of columns different then Excel column name must be exactly same as entity column name. So for your case can consider second point.
Regards