Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

Duplicating Composite Data Entity (to update IsPublic property) for OData

(0) ShareShare
ReportReport
Posted on by 122
We have a requirement to expose Vendor Invoice functionality via Rest API (OData).
 
I have experience duplicating a single data entity in order to set the IsPublic property to Yes and expose it through OData.
 
I need to do the same thing with the VendInvoiceEntity data entity, which is a composite data entity.  The three data entities making up this composite data entity all have IsPublic set to Yes.  But VendInvoiceEntity has IsPublic set to No.
 
 
However, when I duplicate VendInvoiceEntity and add it to my project, the IsPublic property is no longer available for me to update it to Yes:

 
The list of properties has a lot of differences in the duplicated version when I duplicate this composite data entity.
 
Is there a different process for duplicating a composite data entity?  Do I also need to duplicate the data entities that make up the composite data entity as well?  Should I create my own composite data entity?
 
  • Verified answer
    Community member Profile Picture
    Community member 36 on at
    Duplicating Composite Data Entity (to update IsPublic property) for OData
    Yes, Composite data entities cannot be used in OData and I checked that.
    One option you can do is creating custom entity by joining all the tables in the composite entity and use that in the OData.
     
    Thanks,
    Girish S.
  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,552 Super User 2024 Season 1 on at
    Duplicating Composite Data Entity (to update IsPublic property) for OData
    Hi, Composite Data Entites are not supported for Odata. You can check any standard composite data entity, isPublic field will be inaccessible when data entity opened in Designer in visual studio.
     
  • Community member Profile Picture
    Community member 36 on at
    Duplicating Composite Data Entity (to update IsPublic property) for OData
    Hi Jackie,
     
    Better option will be creating a composite entity from scratch same as the standard and see if it works

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,836 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans