Composite Data Entity




STEP 1: Create data entity for the header and line table (set the same field as primary key for both tables).
         
 

The following data entity, staging table and security is created automatically.




STEP 2: Create RowID(integer)  and parent row id (integer) in the header staging table (where the Execution Id and Definition group field, relation, index are automatically created).

         

STEP 3: Create row id and parent row id fields, create relation for primary key, definition group, execution id.

         

STEP 4: Create relation in line level data entity (primary key)





STEP 5: Create composite data entity
By adding new dataset element for header and line entity, then map the relation in the line entity.



STEP 6: Front end à Workspaces à Data management



In data entities, create new record and enter the  composite entity name in target entity, set the entity type as composite entity and  give a name to entity.


In export, give a name and select entity name (which is given in data entities) and composite entity in the lookup.

 

Final output:



Final output :



















Comments

  1. Hi i have created a composite data entity of taking sales order header and line entity. Now i want to captured the scenario that in a sales order if there is a delivery date on each line is different then my sales order lines must be spilted with a same sale order number but with an identification like S0001-1,S0001-2 etc based on the delivery dates on each lines. Can you tell how to achieve this.Also it should only happens while exporting the data and not in the base tables of D365. i.e i don't want this customization to shown in the sales order screen

    ReplyDelete
  2. I created a composite entity and after that, i add some fields and data sources in the parent entity of my composite entity, now its not exporting any record kindly give any idea

    ReplyDelete

Post a Comment

Popular posts from this blog

SSRS Report using Controller , Contract and RDP classes in D365

Exporting data to Excel through X++ code

COC for Form level method

How to pass the parameter from one form to another in Dynamic365

Multi Select Lookup in SSRS Report in D365