I'm using RetrieveAllEntitiesRequest to get and print all entities.
and I want to use [OrderByDescending(x => x.IsCustomEntity)] to print custom entities first.
but [IsCustomEntity] property in RetrieveAllEntitiesResponse is null.
RetrieveAllEntitiesRequest request = new()
{
EntityFilters = EntityFilters.Entity, // tables only
RetrieveAsIfPublished = false
};
var response = (RetrieveAllEntitiesResponse)ServiceClient.Execute(request);
var tables = response.EntityMetadata
.OrderByDescending(x => x.IsCustomEntity) // not working
.ThenBy(x => x.LogicalName)
.ToList();
I'm using RetrieveAllEntitiesRequest to get and print all entities. and I want to use [OrderByDescending(x => x.IsCustomEntity)] to print custom entities first. but [IsCustomEntity] property in RetrieveAllEntitiesResponse is null.