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.
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.
Daivat Vartak (v-9d...
225
Super User 2025 Season 1
Vahid Ghafarpour
136
Super User 2025 Season 1
Eugen Podkorytov
106