Hello,
I have an example entity in Excel, which could look like this :
In the end, when I ingest the Excel in DB it creates only 1 entity, but I would like to have several, like :
So, instead of having standard creation, I'd like to have multiple entities with intermediate tables where the link between the Object and the relative entity is recorded.
Is there a standard/easy way to do this?
I don't have the option to change my input Excel, it is provided "as-is".
My first guess would be, when the ingest happens I need to fetch each column value and work individually like this example :
But this could quickly become a mess especially if I have several columns like the "tags" one, and each containing several entries... I guess many people have been through such examples already and so I suppose a "standard" solution to simplify such activity may exist...
Thank you for reading
Hello @Julien Pahaut ,
You can achieve your use case by following:
The data model consists of the following entities and relationships:
Locations:
Objects:
ObjectTags:
Origins:
Tags:
1. Start
2. For Each Excel Row
3. Check Location
Location.LocationName = ExcelData.Current.YourStructure.Location
5. Check Origin
Origin.OriginName = ExcelData.Current.YourStructure.Origin
6. Check Object
Object.Name = ExcelData.Current.YourStructure.Name
7. Process Tags
Tags.Label = String_Split.Current.Tag
8. Create Object-Tag Relationships
For each tag in the split list:
Your database scheme should look something like:
Hello @Julien Pahaut, You can see attached an example of how the data import process would look for the respective tables, following the best practices of OutSystems.
If you have any further doubts or questions, I will be more than happy to help.
Rui
@Julien PahautIn OutSystems, there is no fully automatic way to directly split an Excel file into multiple entities with relationships. Instead, you need to implement logic to:
Process the Excel data:
Identify unique data:
Insert data into the appropriate entities:
Maintain relationships: