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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

How to know an entity is published or not

(0) ShareShare
ReportReport
Posted on by 32

As MS Doc shows, I can use the function 'RetrieveAllEntities' to get all entity metadata, but this function returned too much content, what I wanted is just some properties like 'logical name, display name, IsIntersect etc, and with condition "RetrieveAsIfPublished=false",  I tested this parameter, seems not working, whatever I give it to 'true' or 'false', an unpublished entity returned always. and this function is low performance.

As I searched, EntityDefinations can be used to retrieve entity metadata also, and I can build $select by myself to get the properties I want. and I did it. it works

Now the only question left is, How to know an entity I retrieved is published or not though 'EntityDefinations'?  because I don't want get the entities which not published yet.

I have the same question (0)
  • Suggested answer
    Francisco Murtinheira Profile Picture
    on at

    Hello,

    Have you tried to use the following SDK methods ?

    docs.microsoft.com/.../retrieveunpublished

    docs.microsoft.com/.../retrieveunpublishedmultiple

    Querying the components in the API like for example on the EntityDefinitions does not seem to work, as when we do that we are querying a view and not the actual component table in SQL.

    If the functions above don't work for you, you can attempt to open a support request with Microsoft Support, so they can try and investigate this further.

    Hope it helps.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 108 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans