web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

How to get Standard and Custom fields/attributes of an Entity

(0) ShareShare
ReportReport
Posted on by 20

I am trying to get standard and custom attributes of an entity. I am using following API 

GET [Organization URI]/api/data/v9.0/EntityDefinitions(LogicalName='contact')/Attributes?$select=LogicalName,AttributeType,SchemaName,IsCustomAttribute,IsValidODataAttribute,EntityLogicalName&$filter=IsValidODataAttribute eq true and IsValidForRead eq true

Though it return all the attributes but when I try to get these attributes data by using following API

GET [Organization URI]/api/data/v9.0/contacts?$select=emailaddress3,slaid,emailaddress2,emailaddress1,.....

The API return response: "Could not find a property named 'slaid' on type 'Microsoft.Dynamics.CRM.contact'."

I get this message for following properties:

createdbyexternalparty, slaid, parentcontactid, slainvokedid, modifiedbyexternalparty, accountid, parentcustomerid

by removing these fields from select filter, API returns 200 response.

Is there is anything I am missing or need to add some filter while getting attributes information?

Thank you!

I have the same question (0)
  • Suggested answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    you get an error because lookup properties (like slaid or accountid in your call, but also the other fields you removed) they are not available to query with just the name but with the following syntax:

    _propertyname_value

    so like

    _slaid_value, _accountid_value

    hope it helps

  • Amit Katariya007 Profile Picture
    10,409 Super User 2025 Season 2 on at

    Hi,

    You can easily get the lookup field data. please refer below article and make changes as per the article.

    carldesouza.com/.../

    Thank you,

    Amit Katariya

    Please verify this answer if it helped you to resolve the issue.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 108 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans