共用方式為


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

AssociateRequest

Creates a link between records that participate in a relationship.

CreateRequest

Creates a record of any type that supports the Create message, including custom entities.

DeleteRequest

Deletes an existing record.

DisassociateRequest

Removes the link between records.

ExecuteAsyncRequest

Execute a message asynchronously. Currently this only supports the ImportSolutionRequest message.

RetrieveRequest

Retrieves a record.

RetrieveMultipleRequest

Retrieves a collection of records. The query can be specified using a query expression or a FetchXML query.

UpdateRequest

Updates an existing record.

Metadata messages

The following table lists the metadata messages available in the XRM namespace.

Message

Description

CanBeReferencedRequest

Checks to see if the specified entity can be the primary entity (one) in a one-to-many relationship.

CanBeReferencingRequest

Checks to see if the specified entity can be the referencing entity (many) in a one-to-many relationship.

CanManyToManyRequest

Checks to see if the entity can participate in a many-to-many relationship.

CreateAttributeRequest

Creates a custom attribute for an entity.

CreateEntityRequest

Creates a custom entity.

CreateManyToManyRequest

Creates a many-to-many relationship between two entities.

CreateOneToManyRequest

Creates a one-to-many relationship between two entities.

CreateOptionSetRequest

Creates a custom global option set.

DeleteAttributeRequest

Deletes an attribute from an entity.

DeleteEntityRequest

Deletes an entity.

DeleteOptionSetRequest

Deletes an option set.

DeleteOptionValueRequest

Deletes an option value from a list of options.

DeleteRelationshipRequest

Deletes a relationship.

GetValidManyToManyRequest

Returns the set of entities that can participate in a many-to-many relationship.

GetValidReferencedEntitiesRequest

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.

GetValidReferencingEntitiesRequest

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.

InsertOptionValueRequest

Inserts an option value into a list of options.

InsertStatusValueRequest

Inserts a status value into a list of status values.

OrderOptionRequest

Sets the order of a list of options.

RetrieveAllEntitiesRequest

Retrieves the metadata for all entities.

RetrieveAttributeRequest

Retrieves the metadata for the specified attribute.

RetrieveEntityRequest

Retrieves the metadata for the specified entity.

RetrieveOptionSetRequest

Retrieves a specified option set.

RetrieveRelationshipRequest

Retrieve the metadata for the specified relationship.

RetrieveTimestampRequest

Retrieves a time stamp indicating the last time that the metadata was changed.

UpdateAttributeRequest

Updates the metadata for an attribute.

UpdateEntityRequest

Updates the metadata for an entity.

UpdateOptionSetRequest

Updates an option set.

UpdateOptionValueRequest

Updates the metadata for an option value.

UpdateRelationshipRequest

Updates the metadata for a relationship.

UpdateStateValueRequest

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