xRM messages in the Organization service
Applies To: Dynamics CRM 2013
The Microsoft.Xrm.Sdk.Messages namespace supports the core messages used to work with the data stored in any entity. This namespace also contains the messages you can use to retrieve and customize the metadata for entities, attributes, and relationships.
Messages are used with the IOrganizationService.Execute method. All messages available in the Microsoft.Xrm.Sdk.Messages namespace apply to all three deployment types.
The request page indicates whether the message works while online (connected to the server) or offline (disconnected from the server).
Data messages
The following table lists the data messages available in the xRM namespace.
Message |
Description |
---|---|
Creates a link between records that participate in a relationship. |
|
Creates a record of any type that supports the Create message, including custom entities. |
|
Deletes an existing record. |
|
Removes the link between records. |
|
Execute a message asynchronously. Currently this only supports the ImportSolutionRequest message. |
|
Retrieves a record. |
|
Retrieves a collection of records. The query can be specified using a query expression or a FetchXML query. |
|
Updates an existing record. |
Metadata messages
The following table lists the metadata messages available in the XRM namespace.
Message |
Description |
---|---|
Checks to see if the specified entity can be the primary entity (one) in a one-to-many relationship. |
|
Checks to see if the specified entity can be the referencing entity (many) in a one-to-many relationship. |
|
Checks to see if the entity can participate in a many-to-many relationship. |
|
Creates a custom attribute for an entity. |
|
Creates a custom entity. |
|
Creates a many-to-many relationship between two entities. |
|
Creates a one-to-many relationship between two entities. |
|
Creates a custom global option set. |
|
Deletes an attribute from an entity. |
|
Deletes an entity. |
|
Deletes an option set. |
|
Deletes an option value from a list of options. |
|
Deletes a relationship. |
|
Returns the set of entities that can participate in a many-to-many relationship. |
|
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. |
|
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. |
|
Inserts an option value into a list of options. |
|
Inserts a status value into a list of status values. |
|
Sets the order of a list of options. |
|
Retrieves the metadata for all entities. |
|
Retrieves the metadata for the specified attribute. |
|
Retrieves the metadata for the specified entity. |
|
Retrieves a specified option set. |
|
Retrieve the metadata for the specified relationship. |
|
Retrieves a time stamp indicating the last time that the metadata was changed. |
|
Updates the metadata for an attribute. |
|
Updates the metadata for an entity. |
|
Updates an option set. |
|
Updates the metadata for an option value. |
|
Updates the metadata for a relationship. |
|
Updates the metadata for a state value. |
See Also
IOrganizationService
Microsoft.Xrm.Sdk.Messages
Use the IOrganizationService web service to read and write data or metadata
CRM messages in the organization service