web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Get a new data entity from 2 other data entity

(2) ShareShare
ReportReport
Posted on by 644
Hi Folks,
 
I have a requirement to create a new data entity which will be used for Odata from 2 existing standard data entities and some more new fields.
 
I have few doubts regarding the approach. Could you please solve them.
 
For this I have created a Composite data entity from the existing data entities. Is it a good approach??
 
I need to add some new fields in the new composite data entity, how can I do this and Can I only import and export this data entity in XML format?
 
Thanks in advance!!
 
 
Categories:
I have the same question (0)
  • Waed Ayyad Profile Picture
    8,825 Super User 2025 Season 2 on at
    Get a new data entity from 2 other data entity

    Hi, 

    Is your issue resolved? If yes, mark the answers that helped you as verified. 

    Thanks,

    Waed Ayyad

  • D365FO Avatar Profile Picture
    644 on at
    Get a new data entity from 2 other data entity
    Okay and can we use this virtual unmapped fields which has been created in data entity to Odata ??
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    297,205 Super User 2025 Season 2 on at
    Get a new data entity from 2 other data entity
    Hi D365FO Avatar,
     
    As mentioned by Waed, you would need to create a new Data entity where you can include all tables needed as data sources. You can also consider some virtual fields instead of adding all tables as data sources, but that would be a design decision having performance in consideration. If you need multiple fields from a single table. then a data source would be better.
     
    You are also mixing OData with import and export (XML format). Can you clarify if you need only OData or also Data management?
    In case you need an XML response from OData, you can read the blog from Martin Drab: XML response from OData services – Goshoom.NET Dev Blog
  • D365FO Avatar Profile Picture
    644 on at
    Get a new data entity from 2 other data entity

    Hi Waed Ayyad,

    I need to use the following two data entities

    However, both entities have numerous data sources, which makes it difficult to figure out how to best achieve this functionality.

    Could you please advise on how to approach this and retrieve the necessary vendor details efficiently?

    Thank you for your help!

  • Suggested answer
    Waed Ayyad Profile Picture
    8,825 Super User 2025 Season 2 on at
    Get a new data entity from 2 other data entity
    Hi,
     
    You can't use CompositeDataEntity in OData, if you want to use it, then you can use it only Using DMF only. 
    If you want to use OData you should create new data entity. (Not composite)
    Do the 2 standard data entities have relationships between there Datasource's? If yes then you can combine them in one data entity.
    Can you add more details about the standards entities and the new fields that you want to add?
     
     

    Thanks,

    Waed Ayyad

    If this helped, please mark it as "Verified" for others facing the same issue

     
     
     
     
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 665 User Group Leader

#2
Martin Dráb Profile Picture

Martin Dráb 595 Most Valuable Professional

#3
Yng Lih Profile Picture

Yng Lih 558

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans