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

Announcements

No record found.

News and Announcements icon
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
    Microsoft Employee 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

#2
ManoVerse Profile Picture

ManoVerse 62 Super User 2026 Season 1

#3
11manish Profile Picture

11manish 43

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans