[Applies to: Microsoft Dynamics CRM 4.0]
Find the latest SDK documentation: CRM 2015 SDK
The metadata Web service uses the MetadataService.Execute method to access the metadata database.
Exactly like the CrmService.Execute method, MetadataService.Execute takes a request parameter, which is a subclass of the MetadataServiceRequest class, and returns a response, which is a subclass of the MetadataServiceResponse class.
The following table contains a list of messages supported by this Web service to be used with the MetadataService.Execute method.
|CanBeReferenced||Checks to see if the specified entity can be the primary entity (one) in a one-to-many relationship.|
|CanBeReferencing||Checks to see if the specified entity can be the referencing entity (many) in a one-to-many relationship.|
|CanManyToMany||Checks to see if the entity can participate in a many-to-many relationship.|
|CreateAttribute||Creates a custom attribute for an entity.|
|CreateEntity||Creates a custom entity.|
|CreateManyToMany||Creates a many-to-many relationship between two entities.|
|CreateOneToMany||Creates a one-to-many relationship between two entities.|
|DeleteAttribute||Deletes an attribute from an entity.|
|DeleteEntity||Deletes an entity.|
|DeleteOptionValue||Deletes an option value from a list of options.|
|DeleteRelationship||Deletes a relationship.|
|GetValidManyToMany||Returns the set of entities that can participate in a many-to-many relationship.|
|GetValidReferencedEntities||Returns the set of entities that are valid as the primary entity (one) from the specified entity in a one-to-many relationship. If no entity is specified, this message returns all entities that can be the primary entity in a one-to-many relationship.|
|GetValidReferencingEntities||Returns the set of entities that are valid as the related entity (many) to the specified entity in a one-to-many relationship. If no entity is specified, this message returns all entities that can be the related entity in a one-to-many relationship.|
|InsertOptionValue||Inserts an option value into a list of options.|
|InsertStatusValue||Adds a new status code to an entity's statuscode attribute.|
|OrderOption||Sets the order of a list of options.|
|RetrieveAllEntities||Retrieves the metadata for all entities.|
|RetrieveAttribute||Retrieves the metadata for the specified attribute.|
|RetrieveEntity||Retrieves the metadata for the specified entity.|
|RetrieveRelationship||Retrieve the metadata for the specified relationship.|
|RetrieveTimestamp||Retrieves a time stamp for the metadata.|
|UpdateAttribute||Updates the metadata for an attribute.|
|UpdateEntity||Updates the metadata for an entity.|
|UpdateOptionValue||Updates the metadata for an option value.|
|UpdateRelationship||Updates the metadata for a relationship.|
© 2010 Microsoft Corporation. All rights reserved.