Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

ComplexStateAttributeMetadata and other ComplexType missing at $metadata endpoint?

(0) ShareShare
ReportReport
Posted on by 10

I am writing a Web API client that is calling the RetrieveMetadataChanges() function and it's getting back results.

When I attempt to parse the JSON, I am finding EntityMetaData > Attributes > "odata.type" key, like this snippet:

{ "EntityMetadata": [ { "Attributes": [ { "@odata.type": "#Microsoft.Dynamics.CRM.ComplexStateAttributeMetadata", ...

When the element occurs, it is a string that refers to various ComplexType-s from the XML theorg.crm.dynamics.com/.../$metadata endpoint.

The problem I'm running into is that not all these types appear to be described at the $metadata endpoint.

The following (apparently ComplexType-s) ARE NOT DEFINED at $metadata :

  • #Microsoft.Dynamics.CRM.ComplexPicklistAttributeMetadata
  • #Microsoft.Dynamics.CRM.ComplexStatusAttributeMetadata
  • #Microsoft.Dynamics.CRM.ComplexEntityNameAttributeMetadata
  • #Microsoft.Dynamics.CRM.ComplexStateAttributeMetadata

The following ComplexType-s ARE DEFINED at $metadata :

  • #Microsoft.Dynamics.CRM.ComplexStringAttributeMetadata
  • #Microsoft.Dynamics.CRM.ComplexLookupAttributeMetadata
  • #Microsoft.Dynamics.CRM.ComplexBigIntAttributeMetadata
  • etc...

So my question is : where are the missing types declared?  Is there a different endpoint that I'm missing?

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Eugen Podkorytov Profile Picture

Eugen Podkorytov 106

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106 Most Valuable Professional

Overall leaderboard

Product updates

Dynamics 365 release plans