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 :
Microsoft Dynamics CRM (Archived)

Retrieve Entity Metadata

(0) ShareShare
ReportReport
Posted on by

Hi, 

I want to retrieve the entity display name and some of its attributes display name.

My approach:

I am querying through RetrieveEntityRequest and able to get the displayname of the entity and all of its attribute.

RetrieveEntityRequest metaDataRequest = new RetrieveEntityRequest();

RetrieveEntityResponse metaDataResponse = new RetrieveEntityResponse();
metaDataRequest.EntityFilters = EntityFilters.Attributes;
metaDataRequest.LogicalName = "abc";

metaDataResponse = (RetrieveEntityResponse)organizationService.Execute(metaDataRequest);
var entityData = metaDataResponse.EntityMetadata;

But I just want to filter the attributes and retrieve some attributes for which i have logical name?

Is there a way to do this; or any other approach is also welcome. 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    I believe you should use MetadataQuery to filter metadata that you want to get.

  • Suggested answer
    ashlega Profile Picture
    34,477 on at

    Hi,

    There is, also, RetrieveAttributeRequest - may e that's what you need.

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 > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans