In my last post, I have mentioned how to use OOB composite entity for Import/Export using Data management. In this post I will show, how to create your own composite entity. I am taking the example of Sales Order which includes Sales Header and Sales Line.
Step 1: Go to visual studio and create your custom model for Application Suite model.
Step 2: Customize the table SalesOrderHeaderStaging.
Create 2 new fields in table: RowId and ParentRowId. To create these fields, you can drag drop fields from BankJournalHeaderStaging, Similarly Create index RowIdx
Step 3: Customize the table SalesOrderLineStaging.
Create 2 new fields in table: RowId and ParentRowId. To create these fields, you can drag drop fields from BankJournalHeaderStaging, Similarly Create index RowIdx. Create a relation to SalesOrderHeaderStaing Table as shown below in the screenshot.
Step 4: Create new composite entity. Give it a name SalesOrderDataEntity. Add new root data entity reference: SalesOrderHeaderEntity and then New Embedded Data Entity Reference: SalesOrderLineEntity
Make sure Relation is set to SalesOrderHeader.
Step 5: Build the solution. Create the Export data entity as shown in below snapshot.
Click on the Export and that's it. You can now download the file which looks like below:
Step 1: Go to visual studio and create your custom model for Application Suite model.
Step 2: Customize the table SalesOrderHeaderStaging.
Create 2 new fields in table: RowId and ParentRowId. To create these fields, you can drag drop fields from BankJournalHeaderStaging, Similarly Create index RowIdx
Step 3: Customize the table SalesOrderLineStaging.
Create 2 new fields in table: RowId and ParentRowId. To create these fields, you can drag drop fields from BankJournalHeaderStaging, Similarly Create index RowIdx. Create a relation to SalesOrderHeaderStaing Table as shown below in the screenshot.
Step 4: Create new composite entity. Give it a name SalesOrderDataEntity. Add new root data entity reference: SalesOrderHeaderEntity and then New Embedded Data Entity Reference: SalesOrderLineEntity
Make sure Relation is set to SalesOrderHeader.
Step 5: Build the solution. Create the Export data entity as shown in below snapshot.
Click on the Export and that's it. You can now download the file which looks like below:






















