Compartilhar via


RevertProductRequest Class

Definition

Contains the data that is needed to revert changes done to properties of a product family, product, or bundle record, and set it back to its last published (active) state.

public ref class RevertProductRequest sealed : Microsoft::Xrm::Sdk::OrganizationRequest
[System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/crm/2011/Contracts")]
public sealed class RevertProductRequest : Microsoft.Xrm.Sdk.OrganizationRequest
[<System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/crm/2011/Contracts")>]
type RevertProductRequest = class
    inherit OrganizationRequest
Public NotInheritable Class RevertProductRequest
Inherits OrganizationRequest
Inheritance
RevertProductRequest
Attributes

Remarks

This message requires that the Dynamics 365 Sales solution is installed.

For the Web API use the RevertProduct Action.

Usage

Pass an instance of this class to the Execute(OrganizationRequest) method, which returns an instance of RevertProductResponse.

Privileges and Access Rights

To perform this action, the caller must have privileges on the Product entity. and access rights on the record specified in the Target property.

Notes to Callers

All the product property (attribute) changes done to the record since it was last published (active) will be lost.

Constructors

RevertProductRequest()

Initializes a new instance of the RevertProductRequest class.

Properties

ExtensionData

Gets or sets the structure that contains extra data. Optional.

(Inherited from OrganizationRequest)
Item[String]

Gets or sets the indexer for the Parameters collection.

(Inherited from OrganizationRequest)
Parameters

Gets or sets the collection of parameters for the request. Required, but is supplied by derived classes.

(Inherited from OrganizationRequest)
RequestId

Gets or sets the ID of the request. Optional.

(Inherited from OrganizationRequest)
RequestName

Gets or sets the name of the request. Required, but is supplied by derived classes.

(Inherited from OrganizationRequest)
Target

Gets or sets the target product family, product, or bundle record for which you want to revert the changes done to its properties since it was last published. Required.

Applies to