Skip to main content

Notifications

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.

  • Suggested answer
    Francisco Murtinheira Profile Picture
    on at
    RE: How to know an entity is published or not

    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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 136 Super User 2025 Season 1

#3
Eugen Podkorytov Profile Picture

Eugen Podkorytov 106

Overall leaderboard

Product updates

Dynamics 365 release plans