PublishXmlRequest PublishXmlRequest PublishXmlRequest PublishXmlRequest Class

Definition

Contains the data that is needed to publish specified solution components.

For the Web API use the PublishXml Action.

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

Examples

// Use UpdateOptionSetRequest to update the basic information of an option
// set. Updating option set values requires different messages (see below).
var updateOptionSetRequest = new UpdateOptionSetRequest
{
    OptionSet = new OptionSetMetadata
    {
        DisplayName = new Label("Updated Option Set", _languageCode),
        Name = _globalOptionSetName,
        IsGlobal = true
    }
};
   svc.Execute(updateOptionSetRequest);
//Publish the OptionSet
var pxReq1 = new PublishXmlRequest { ParameterXml = String.Format("{0}", _globalOptionSetName) };
svc.Execute(pxReq1);

Remarks

Message Availability

For this message to work, the caller must be connected to the server.

Usage

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

Privileges and Access Rights

To perform this action, the caller must have privileges listed in PublishXml message privileges.

Notes for Callers

Use this message to publish a specified subset of solution components. See ParameterXml for details about how to specify the solution components to publish.

Constructors

PublishXmlRequest() PublishXmlRequest() PublishXmlRequest() PublishXmlRequest()

Initializes a new instance of the PublishXmlRequest class

Properties

ExtensionData ExtensionData ExtensionData ExtensionData

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

(Inherited from OrganizationRequest)
Item[String] Item[String] Item[String] Item[String]

Gets or sets the indexer for the Parameters collection.

(Inherited from OrganizationRequest)
Parameters Parameters Parameters Parameters

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

(Inherited from OrganizationRequest)
ParameterXml ParameterXml ParameterXml ParameterXml

Gets or sets the XML that defines which solution components to publish in this request. Required.

RequestId RequestId RequestId RequestId

Gets or sets the ID of an asynchronous operation (system job). Optional.

(Inherited from OrganizationRequest)
RequestName RequestName RequestName RequestName

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

(Inherited from OrganizationRequest)

Applies to

See also