Export (0) Print
Expand All
Expand Minimize

SetStateDynamicEntity Message (CrmService)

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Find the latest SDK documentation: CRM 2015 SDK

Works for all deployment typesWorks online and offline

Sets the state of an entity instance represented as a dynamic entity.

The relevant classes are specified in the following table.

TypeClass
RequestSetStateDynamicEntityRequest
ResponseSetStateDynamicEntityResponse
EntitySee the following table.

The following table shows the entities and target classes for this message.

Entity
account
appointment
businessunit
campaign
campaignactivity
campaignresponse
contact
contract
contractdetail
discounttype
email
fax
incident
incidentresolution
invoice
kbarticle
lead
letter
list
mailmergetemplate
opportunity
opportunityclose
orderclose
phonecall
pricelevel
product
quote
quoteclose
relationshiprole
salesorder
sdkmessageprocessingstep
serviceappointment
systemuser
task
transactioncurrency
userquery
workflow

Remarks

To use this message, pass an instance of the SetStateDynamicEntityRequest class as the request parameter in the Execute method.

The possible states are defined in the state enumeration for the entity type specified in the request. To perform this action, the caller must have write privileges for the entity type and access rights on the entity instance specified in the request class. For a list of required privileges, see SetState Privileges.

This message updates the properties statuscode and statecode in an entity instance represented as a dynamic entity.

Example

For an example of how to use this message, see SetStateAccount.

See Also

Concepts

Reference


© 2010 Microsoft Corporation. All rights reserved.


Show:
© 2015 Microsoft