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 :
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 Moderator 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

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 > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 128 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 95

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans