Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2021 Release Wave 2Discover the latest updates and new features releasing from October 2021 through March 2022.
2021 release wave 2 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
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?
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:
hope it helps
You can easily get the lookup field data. please refer below article and make changes as per the article.
Please verify this answer if it helped you to resolve the issue.
Business Applications communities