Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SetStateDiscountType Message (CrmService)
Collapse the table of content
Expand the table of content

SetStateDiscountType 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 a discount type (discount list).

The relevant classes are specified in the following table.

TypeClass
RequestSetStateDiscountTypeRequest
ResponseSetStateDiscountTypeResponse
Entitydiscounttype

Remarks

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

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

This message updates the discounttype entity properties statuscode and statecode.

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