I can retrieve attibutes by using code below:
public static EntityMetadata RetrieveEntityMetadata(IOrganizationService service, string logicalName)
{
var request = new RetrieveEntityRequest()
{
LogicalName = logicalName,
EntityFilters = EntityFilters.All,
RetrieveAsIfPublished = false
};
var result = (RetrieveEntityResponse)service.Execute(request);
return result.EntityMetadata;
}
And result.EntityMetadata have a property Attributes, which contains all attributes of entity. But I want also get sections list of entity. How can I do this?
